Fix pylint and state test failure

This commit is contained in:
Ch3LL 2019-04-15 12:14:55 -04:00
parent 048a82e3d7
commit 474efa1ce4
No known key found for this signature in database
GPG key ID: 132B55A7C13EFA73
2 changed files with 1 additions and 2 deletions

View file

@ -298,7 +298,6 @@ def list_(narrow=None,
result = __salt__['cmd.run_all'](cmd, python_shell=False)
# Chocolatey introduced Enhanced Exit Codes starting with version 0.10.12
# Exit Code 2 means there were no results, but is not a failure
# This may start to effect other functions in the future as Chocolatey

View file

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