Merge pull request #49757 from bbinet/fix-influxdb_user-test

Fix influxdb_user state when test=True
This commit is contained in:
Nicole Thomas 2018-09-24 15:14:22 -04:00 committed by GitHub
commit db6f68afdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,9 +119,10 @@ def present(name,
ret['changes'][name] = 'User created'
else:
if __opts__['test']:
ret['result'] = None
ret['comment'] = 'User {0} will be updated with the ' \
'following changes:'.format(name)
for k, v in ret['changes']:
for k, v in ret['changes'].items():
ret['comment'] += '\n{0} => {1}'.format(k, v)
ret['changes'] = {}
else: