Do not PATCH Account Enabled prop if not supported (#62617)
* do not PATCH Account Enabled prop if not supported * add changelog fragment
This commit is contained in:
parent
c9a669e42c
commit
14eedb2956
2 changed files with 4 additions and 1 deletions
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
bugfixes:
|
||||
- redfish_command - fix EnableAccount if Enabled property is not present in Account resource (https://github.com/ansible/ansible/issues/59822)
|
|
@ -904,7 +904,7 @@ class RedfishUtils(object):
|
|||
uri = response['uri']
|
||||
data = response['data']
|
||||
|
||||
if data.get('Enabled'):
|
||||
if data.get('Enabled', True):
|
||||
# account already enabled, nothing to do
|
||||
return {'ret': True, 'changed': False}
|
||||
|
||||
|
|
Loading…
Reference in a new issue