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/extended/code_update/code_update_utils.robot b/extended/code_update/code_update_utils.robot
index c466019..683bf7a 100755
--- a/extended/code_update/code_update_utils.robot
+++ b/extended/code_update/code_update_utils.robot
@@ -81,7 +81,7 @@
 
     FOR  ${index}  IN RANGE  0  4
       ${status}=  Retry SCP  ${image_file_path}
-      Exit For Loop If  '${status}' == '${True}'
+      IF  '${status}' == '${True}'  BREAK
     END
 
 
@@ -127,9 +127,9 @@
 
     ${l_status}=  Run Keyword and Return Status
     ...  Verify Ping and REST Authentication
-    Run Keyword If  '${l_status}' == '${False}'
-    ...  Fail  msg=System not in ideal state to use [ERROR]
-
+    IF  '${l_status}' == '${False}'
+        Fail  msg=System not in ideal state to use [ERROR]
+    END
 
 Validate BMC Version
     [Documentation]  Get BMC version from /etc/os-release and compare.