Fix deprecated Exit For Loop builtin for IPMI
Changes:
- Exit For Loop If is deprecated since
Robot Framework version 5.*, use IF and BREAK instead
Tested:
- Checked using robot dry-run to make sure the
syntax is not broken
Change-Id: I25903fb2937325b5c78ba412b44c16d6e9e1558a
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/redfish/systems/test_systems_inventory.robot b/redfish/systems/test_systems_inventory.robot
index 0c2224e..9b940aa 100755
--- a/redfish/systems/test_systems_inventory.robot
+++ b/redfish/systems/test_systems_inventory.robot
@@ -107,6 +107,7 @@
${state}= Set Variable ${power_supply['Status']['State']}
${good_state}= Evaluate
... any(x in '${state}' for x in ('Enabled', 'StandbyOffline'))
+
IF not ${good_state} CONTINUE
${total_num_supplies}= Evaluate $total_num_supplies + ${1}
END