Add logic to get image ID from Redfish firmware inventory

Change-Id: Ia12bfe449e44c75ef8e15df06dff15af854e0cf1
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/code_update_utils.robot b/lib/code_update_utils.robot
index d06c1ae..bd186d6 100644
--- a/lib/code_update_utils.robot
+++ b/lib/code_update_utils.robot
@@ -529,12 +529,10 @@
     # Example: # ls /tmp/images/
     #            1b714fb7
     ${image_id}=  Get Latest File  /tmp/images/
-    Valid Value  image_id
 
-    # Though an image sub-directory was found, it really isn't valid unless
-    # the MANIFEST file is present.
-    BMC Execute Command  ls -l /tmp/images/${image_id}/MANIFEST
+    Return From Keyword If  '${image_id}' != '${EMPTY}'  ${image_id}
 
+    ${image_id}=   Get Image Id   Updating
     [Return]  ${image_id}