Automation enhancement for firmware update

changes:
   - Added print statement for deleting the firmware and
     continue update.

Change-Id: Ice61ed334672fb5556cbb39b0133b61038e23658
Signed-off-by: Sushil Singh <susilsi7@in.ibm.com>
diff --git a/redfish/extended/redfish_bmc_code_update.robot b/redfish/extended/redfish_bmc_code_update.robot
index 901d8ee..d42dca4 100644
--- a/redfish/extended/redfish_bmc_code_update.robot
+++ b/redfish/extended/redfish_bmc_code_update.robot
@@ -65,6 +65,9 @@
     # done to give a chance.
 
     Run Keyword If  '${image_info_len}' != 0
+    ...  Run Keywords  Print Timen
+    ...  The ${image_version} version is installed but not functional, try delete and continue firmware update.
+    ...    AND
     ...  Run Keyword And Ignore Error
     ...    Delete Software Object  /xyz/openbmc_project/software/${image_info['image_id']}
 
@@ -109,12 +112,12 @@
       Print Timen  **************************************
       Redfish Update Firmware
       ${sw_inv}=  Get Functional Firmware  BMC update
-      ${nonfunctional_sw_inv}=  Get Non Fucntional Firmware  ${sw_inv}  False
+      ${nonfunctional_sw_inv}=  Get Non Functional Firmware  ${sw_inv}  False
       Run Keyword If  ${nonfunctional_sw_inv['functional']} == False
       ...  Set BMC Image Priority To Least  ${nonfunctional_sw_inv['version']}  ${nonfunctional_sw_inv}
       Redfish.Login
       ${sw_inv}=  Get Functional Firmware  BMC update
-      ${nonfunctional_sw_inv}=  Get Non Fucntional Firmware  ${sw_inv}  False
+      ${nonfunctional_sw_inv}=  Get Non Functional Firmware  ${sw_inv}  False
       Delete BMC Image
     END
 
@@ -126,7 +129,7 @@
     [Documentation]  Get BMC functional firmware details.
 
     ${sw_inv}=  Get Functional Firmware  BMC update
-    ${sw_inv}=  Get Non Fucntional Firmware  ${sw_inv}  True
+    ${sw_inv}=  Get Non Functional Firmware  ${sw_inv}  True
 
     [Return]  ${sw_inv}
 
@@ -144,7 +147,7 @@
     [Return]  ${bmc_inv}
 
 
-Get Non Fucntional Firmware
+Get Non Functional Firmware
     [Documentation]  Get BMC non functional fimware details.
     [Arguments]  ${sw_inv}  ${functional_sate}