changes needs to be a dictionary.

This commit is contained in:
Gareth J. Greenaway 2019-04-09 11:05:34 -07:00
parent ac950b34c8
commit 7c4abd6d6e
No known key found for this signature in database
GPG Key ID: 10B62F8A7CAD7A41

View File

@ -2767,7 +2767,7 @@ def managed(name,
reset=win_perms_reset)
except CommandExecutionError as exc:
if exc.strerror.startswith('Path not found'):
ret['changes'] = '{0} will be created'.format(name)
ret['changes'] = {name: 'will be created'}
if isinstance(ret['changes'], tuple):
ret['result'], ret['comment'] = ret['changes']