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:
Bill Dodd 2019-10-29 08:16:49 -05:00 committed by John R Barker
parent c9a669e42c
commit 14eedb2956
2 changed files with 4 additions and 1 deletions

View file

@ -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)

View file

@ -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}