Fix Account service patch HTTP response code

Changes:
    - HTTP 200 and 204 are valid respond.
    - CI failure fix F824 global ipmi_required_options
      is unused: name is never assigned in scope

Tested:
    Ran from the sandbox with changes.

Change-Id: I11cca086914631b0dd7e39284668a9eb1541adfe
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/ipmi_client.py b/lib/ipmi_client.py
index 6fffe2c..87b2618 100644
--- a/lib/ipmi_client.py
+++ b/lib/ipmi_client.py
@@ -96,7 +96,6 @@
     """
 
     # Assumption: "U" is in the global ipmi_required_options.
-    global ipmi_required_options
     print_output = 0
 
     command_string = create_ipmi_ext_command_string("power status")
diff --git a/redfish/account_service/test_user_account.robot b/redfish/account_service/test_user_account.robot
index b7c1f9b..7943e81 100644
--- a/redfish/account_service/test_user_account.robot
+++ b/redfish/account_service/test_user_account.robot
@@ -266,6 +266,7 @@
     ${payload}=  Create Dictionary  AccountLockoutThreshold=${account_lockout_threshold}
     ...  AccountLockoutDuration=${account_lockout_duration}
     Redfish.Patch  ${REDFISH_ACCOUNTS_SERVICE_URI}  body=${payload}
+    ...  valid_status_codes=[${HTTP_OK}, ${HTTP_NO_CONTENT}]
 
     Redfish.Logout