mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-19 17:01:25 -07:00
Add redfish_config command to set service identification (#7917)
* Update redfish_utils.py * Update redfish_utils.py * Update redfish_config.py * Update redfish_config.py * Update redfish_config.py * Update redfish_utils.py * Create 7916-add-redfish-set-service-identification.yml * fix lint * Update redfish_utils.py * add service_id docs * Update redfish_info.py * Update plugins/modules/redfish_info.py Co-authored-by: Felix Fontein <felix@fontein.de> * fix conflict * fix conflict * fix conflict * fix conflict * Update redfish_utils.py * Update redfish_info.py * Update redfish_info.py * Update plugins/modules/redfish_config.py Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: dh <dh@alpha.stegosaur.org> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
5af921e8d9
commit
eded6ebf64
3 changed files with 29 additions and 1 deletions
|
@ -3408,6 +3408,11 @@ class RedfishUtils(object):
|
|||
result['ret'] = True
|
||||
return result
|
||||
|
||||
def set_service_identification(self, service_id):
|
||||
data = {"ServiceIdentification": service_id}
|
||||
resp = self.patch_request(self.root_uri + '/redfish/v1/Managers/' + self.resource_id, data, check_pyld=True)
|
||||
return resp
|
||||
|
||||
def set_session_service(self, sessions_config):
|
||||
if sessions_config is None:
|
||||
return {'ret': False, 'msg':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue