Do not PATCH Account Enabled prop if not supported (#62617)

* do not PATCH Account Enabled prop if not supported

* add changelog fragment
pull/64077/head
Bill Dodd 5 years ago committed by John R Barker
parent c9a669e42c
commit 14eedb2956

@ -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…
Cancel
Save