mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix pylint and state test failure
This commit is contained in:
parent
048a82e3d7
commit
474efa1ce4
2 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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']
|
||||
|
|
Loading…
Add table
Reference in a new issue