mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #2400 from jesusaurus/develop
The puppet command requires a subcommand.
This commit is contained in:
commit
304b1b145b
@ -52,9 +52,9 @@ def run(tags=None):
|
||||
_check_puppet()
|
||||
|
||||
if not tags:
|
||||
cmd = 'puppet --test'
|
||||
cmd = 'puppet agent --test'
|
||||
else:
|
||||
cmd = 'puppet --test --tags "{0}"'.format(tags)
|
||||
cmd = 'puppet agent --test --tags "{0}"'.format(tags)
|
||||
|
||||
return __salt__['cmd.run_all'](cmd)
|
||||
|
||||
@ -73,9 +73,9 @@ def noop(tags=None):
|
||||
_check_puppet()
|
||||
|
||||
if not tags:
|
||||
cmd = 'puppet --test --noop'
|
||||
cmd = 'puppet agent --test --noop'
|
||||
else:
|
||||
cmd = 'puppet --test --tags "{0}" --noop'.format(tags)
|
||||
cmd = 'puppet agent --test --tags "{0}" --noop'.format(tags)
|
||||
|
||||
return __salt__['cmd.run_all'](cmd)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user