Code enhancement for firmware update

Changes:
   - Code enhancement.
     "Redfish Code Update With Multiple Firmware"

Tested: - Ran successfully
     Redfish Code Update With Multiple Firmware
Change-Id: I955e81db5de30f82aa4ec57868c46c0f3cd12b3a
Signed-off-by: Sushil Singh <susilsi7@in.ibm.com>
diff --git a/redfish/update_service/test_redfish_image_upload.robot b/redfish/update_service/test_redfish_image_upload.robot
index ebb6936..19b4436 100644
--- a/redfish/update_service/test_redfish_image_upload.robot
+++ b/redfish/update_service/test_redfish_image_upload.robot
@@ -142,13 +142,13 @@
     Valid File Path  image_file_path
     Set ApplyTime  policy=OnReset
     ${image_data}=  OperatingSystem.Get Binary File  ${image_file_path}
-    ${status_code}=  Upload Image To BMC
+    ${resp}=  Upload Image To BMC
     ...  ${REDFISH_BASE_URI}UpdateService
     ...  ${timeout}
     ...  valid_status_codes=[${HTTP_OK}, ${HTTP_INTERNAL_SERVER_ERROR}]
     ...  data=${image_data}
 
-    Return From Keyword If  ${status_code} == ${HTTP_INTERNAL_SERVER_ERROR}
+    Return From Keyword If  ${resp.status_code} == ${HTTP_INTERNAL_SERVER_ERROR}
 
     ${image_id}=  Get Latest Image ID
     Rprint Vars  image_id