Fix for check VPD and HW status test

Changes:
Fix for check VPD and HW status test

Tested:
Executed check_vpd_and_hw_status.robot on BMC

Change-Id: I902a49464ac40085369dc5cfd25f66ada9a27156
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/openpower/check_vpd_and_hw_status.robot b/openpower/check_vpd_and_hw_status.robot
index 5f3223a..4eddcdd 100644
--- a/openpower/check_vpd_and_hw_status.robot
+++ b/openpower/check_vpd_and_hw_status.robot
@@ -24,15 +24,14 @@
     ${system_properties}=  Redfish_Utils.Get Properties  ${SYSTEM_BASE_URI}
     ${system_memory_info}=  Redfish_Utils.Enumerate Request  ${SYSTEM_BASE_URI}/Memory
     ${system_processors_info}=  Redfish_Utils.Enumerate Request  ${SYSTEM_BASE_URI}/Processors
-
-    # Python module:  get_endpoint_path_list(resource_path, end_point_prefix)
-    ${thermal_uri}=  redfish_utils.Get Endpoint Path List  ${REDFISH_CHASSIS_URI}  Thermal
-    ${system_fans_info}=  Redfish_Utils.Get Attribute  ${thermal_uri[0]}  Fans
+    ${system_fans_info}=  Redfish_Utils.Enumerate Request
+    ...  ${REDFISH_CHASSIS_URI}/Chassis/ThermalSubsystem/Fans
 
     ${collected_values}=  gen_robot_print.Sprint Vars
     ...  system_properties  system_memory_info  system_processors_info  system_fans_info
     Log To Console  ${\n}${collected_values}${\n}
 
+
 Run VPD Tool
     [Documentation]  Run vpd-tool -i.
     [Tags]  Run_VPD_Tool