mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Do not reboot after updating BIOS configuration
This commit is contained in:
parent
f3583cebd6
commit
2b74a17996
1 changed files with 3 additions and 2 deletions
|
@ -745,7 +745,7 @@ class RedfishUtils(object):
|
||||||
data = response['data']
|
data = response['data']
|
||||||
set_bios_attr_uri = data["@Redfish.Settings"]["SettingsObject"]["@odata.id"]
|
set_bios_attr_uri = data["@Redfish.Settings"]["SettingsObject"]["@odata.id"]
|
||||||
|
|
||||||
payload = {"TargetSettingsURI": set_bios_attr_uri, "RebootJobType": "PowerCycle"}
|
payload = {"TargetSettingsURI": set_bios_attr_uri}
|
||||||
response = self.post_request(self.root_uri + self.manager_uri + "/" + jobs, payload, HEADERS)
|
response = self.post_request(self.root_uri + self.manager_uri + "/" + jobs, payload, HEADERS)
|
||||||
if response['ret'] is False:
|
if response['ret'] is False:
|
||||||
return response
|
return response
|
||||||
|
@ -753,7 +753,8 @@ class RedfishUtils(object):
|
||||||
response_output = response['resp'].__dict__
|
response_output = response['resp'].__dict__
|
||||||
job_id = response_output["headers"]["Location"]
|
job_id = response_output["headers"]["Location"]
|
||||||
job_id = re.search("JID_.+", job_id).group()
|
job_id = re.search("JID_.+", job_id).group()
|
||||||
return {'ret': True, 'msg': 'Config job created', 'job_id': job_id}
|
# Currently not passing job_id back to user but patch is coming
|
||||||
|
return {'ret': True, 'msg': "Config job %s created" % job_id}
|
||||||
|
|
||||||
def get_fan_inventory(self):
|
def get_fan_inventory(self):
|
||||||
result = {}
|
result = {}
|
||||||
|
|
Loading…
Reference in a new issue