mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Code Linting and cmd call fix
This commit is contained in:
parent
a51676e0eb
commit
7eff8ad070
1 changed files with 2 additions and 2 deletions
|
@ -788,7 +788,7 @@ def run(name,
|
|||
if not onlyif:
|
||||
return valid(comment='onlyif execution failed')
|
||||
elif isinstance(onlyif, string_types):
|
||||
if not cmd.retcode(onlyif) == 0:
|
||||
if not __salt__['cmd.retcode'](onlyif) == 0:
|
||||
return valid(comment='onlyif execution failed')
|
||||
|
||||
if unless is not None:
|
||||
|
@ -796,7 +796,7 @@ def run(name,
|
|||
if unless:
|
||||
return valid(comment='unless execution succeeded')
|
||||
elif isinstance(unless, string_types):
|
||||
if cmd.retcode(unless) == 0:
|
||||
if __salt__['cmd.retcode'](unless) == 0:
|
||||
return valid(comment='unless execution succeeded')
|
||||
|
||||
if docked_onlyif is not None:
|
||||
|
|
Loading…
Add table
Reference in a new issue