diff --git a/plugins/module_utils/redfish_utils.py b/plugins/module_utils/redfish_utils.py index a3423b63297..5d3303d984b 100644 --- a/plugins/module_utils/redfish_utils.py +++ b/plugins/module_utils/redfish_utils.py @@ -3170,9 +3170,4 @@ def enable_secure_boot(self): body = {} body["SecureBootEnable"] = True - response = self.patch_request(self.root_uri + secure_boot_url, body, check_pyld=True) - - if response["ret"] is False: - return response - - return response + return self.patch_request(self.root_uri + secure_boot_url, body, check_pyld=True)