mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #49757 from bbinet/fix-influxdb_user-test
Fix influxdb_user state when test=True
This commit is contained in:
commit
db6f68afdb
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue