Minor enhancement fixes for Auto Reboot keyword code

Change-Id: Idd95c8249fb3c0dd0a43b2dd1fbc14509dee1841
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index 4f0e3db..9f6c948 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -364,9 +364,9 @@
     [Documentation]  Returns auto reboot setting.
 
     Redfish.Login
-    ${resp}=  Redfish.get  /redfish/v1/Systems/system
+    ${resp}=  Redfish.Get Attribute  /redfish/v1/Systems/system  Boot
     Redfish.Logout
-    [Return]  ${resp.dict["Boot"]["AutomaticRetryConfig"]}
+    [Return]  ${resp["AutomaticRetryConfig"]}
 
 
 Trigger Warm Reset
@@ -680,8 +680,10 @@
     # setting    The reboot setting, "RetryAttempts" and "Disabled".
 
     Redfish.Login
-    Redfish.patch  /redfish/v1/Systems/system  body={"Boot": {"AutomaticRetryConfig": "${setting}"}}
-    ...  valid_status_codes=[200, 204]
+    Redfish.Patch  /redfish/v1/Systems/system  body={"Boot": {"AutomaticRetryConfig": "${setting}"}}
+    ...  valid_status_codes=[${HTTP_OK}, ${HTTP_NO_CONTENT}]
+    Redfish.Logout
+
     ${current_setting}=  Redfish Get Auto Reboot
     Should Be Equal As Strings  ${current_setting}  ${setting}