Fix for deprecated Exit For Loop keyword
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: Ib12fecbc996ba14f4cabd7677f85a90fa3f2b39b
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/redfish/managers/test_bmc_network_conf.robot b/redfish/managers/test_bmc_network_conf.robot
index 653e88a..ec4854f 100644
--- a/redfish/managers/test_bmc_network_conf.robot
+++ b/redfish/managers/test_bmc_network_conf.robot
@@ -834,7 +834,7 @@
FOR ${network_configuration} IN @{network_configurations}
${ip_found}= Set Variable If '${network_configuration['Address']}' == '${ip_address}' ${True}
... ${False}
- Exit For Loop If ${ip_found}
+ IF ${ip_found} BREAK
END
Run Keyword If '${ip_found}' == '${False}'
... Fail msg=Configured IP address not found on EthernetInterface URI.