Address issue for deprecated syntax
Change from :FOR to FOR/END to address a new WARNING in
the new robot version.
Change-Id: Id5d1259f3e8c928cc2425e7e6b2d0051358b99e1
Signed-off-by: Sushma M M <sushmm99@in.ibm.com>
diff --git a/redfish/systems/test_systems_inventory.robot b/redfish/systems/test_systems_inventory.robot
index 606cf09..915448c 100755
--- a/redfish/systems/test_systems_inventory.robot
+++ b/redfish/systems/test_systems_inventory.robot
@@ -39,7 +39,7 @@
# Get the number of cores.
${total_num_cores}= Set Variable ${0}
- :FOR ${cpu} IN @{cpus_ok}
+ FOR ${cpu} IN @{cpus_ok}
${cores}= Get CPU TotalCores ${cpu}
${total_num_cores}= Evaluate $total_num_cores + ${cores}
END
@@ -99,7 +99,7 @@
# Count the power supplies that are Enabled or StandbyOffline.
${total_num_supplies}= Set Variable ${0}
- :FOR ${power_supply} IN @{power_supplies_ok}
+ FOR ${power_supply} IN @{power_supplies_ok}
# Example of power_supply:
# power_supply = {'@odata.id': '/redfish/v1/Chassis/chassis/Power#/PowerSupplies/0',
# 'Manufacturer': '', 'MemberId': 'powersupply0', 'Model': '2100', 'Name':
@@ -186,7 +186,7 @@
# Select only GPUs with Health = "OK".
${gpus_ok}= Filter Struct ${gpu_info} [('Health', 'OK')]
- :FOR ${gpu} IN @{gpus_ok}
+ FOR ${gpu} IN @{gpus_ok}
${status}= Redfish.Get Attribute ${gpu} Status
${state}= Set Variable ${status['State']}
${good_state}= Evaluate