Redfish Network robot codes with latest directives
Changes:
- Run KeyWord If is deprecated since Robot
Framework version 5.*, use 'IF' instead
Tested:
- Checked using robot dry-run to make sure the
syntax is not broken
Change-Id: Ibe1bbbd4603c0e8348fa0408132e41a165ae0154
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/redfish/managers/test_managers_bmc_time.robot b/redfish/managers/test_managers_bmc_time.robot
index d845743..bd28baf 100644
--- a/redfish/managers/test_managers_bmc_time.robot
+++ b/redfish/managers/test_managers_bmc_time.robot
@@ -120,8 +120,7 @@
Get NTP Initial Status
${old_date_time}= CLI Get BMC DateTime
${year_status}= Run Keyword And Return Status Should Not Contain ${old_date_time} ${year_without_ntp}
- Run Keyword If ${year_status} == False
- ... Enable NTP And Add NTP Address
+ IF ${year_status} == False Enable NTP And Add NTP Address
Set Time To Manual Mode