Redfish extend 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: If4b31968d98722d74befef6149d2144d23cfa595
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/redfish/extended/redfish_host_code_update.robot b/redfish/extended/redfish_host_code_update.robot
index 006e711..c492f00 100644
--- a/redfish/extended/redfish_host_code_update.robot
+++ b/redfish/extended/redfish_host_code_update.robot
@@ -43,9 +43,10 @@
 
     ${num_records}=  Get Length  ${functional_sw_inv}
 
-    Run Keyword If  ${num_records} != 0
-    ...  Pass Execution If  '${functional_sw_inv['version']}' == '${image_version}'
-    ...  The existing ${image_version} firmware is already functional.
+    IF  ${num_records} != 0
+        Pass Execution If  '${functional_sw_inv['version']}' == '${image_version}'
+        ...  The existing ${image_version} firmware is already functional.
+    END
 
     ${post_code_update_actions}=  Get Post Boot Action
     ${state}=  Get Pre Reboot State