mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 02:41:25 -07:00
puppet: fix noop parameter error (#6458)
* puppet: fix noop parameter error * add changelog frag
This commit is contained in:
parent
fab717bb2d
commit
d254372d37
3 changed files with 163 additions and 107 deletions
|
@ -63,11 +63,7 @@ def puppet_runner(module):
|
|||
return cmd
|
||||
|
||||
def noop_func(v):
|
||||
_noop = cmd_runner_fmt.as_map({
|
||||
True: "--noop",
|
||||
False: "--no-noop",
|
||||
})
|
||||
return _noop(module.check_mode or v)
|
||||
return ["--noop"] if module.check_mode or v else ["--no-noop"]
|
||||
|
||||
_logdest_map = {
|
||||
"syslog": ["--logdest", "syslog"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue