mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-26 21:33:12 +00:00
puppet: use better CmdRunner param formatting (#10014)
* puppet: use better CmdRunner param formatting * ignore none * add changelog frag
This commit is contained in:
2
changelogs/fragments/10014-puppet-improve-param.yml
Normal file
2
changelogs/fragments/10014-puppet-improve-param.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
minor_changes:
|
||||
- puppet - improve parameter formatting, no impact to user (https://github.com/ansible-collections/community.general/pull/10014).
|
||||
@@ -95,10 +95,7 @@ def puppet_runner(module):
|
||||
skip_tags=cmd_runner_fmt.as_func(lambda v: ["--skip_tags", ",".join(v)]),
|
||||
certname=cmd_runner_fmt.as_opt_eq_val("--certname"),
|
||||
noop=cmd_runner_fmt.as_func(noop_func),
|
||||
use_srv_records=cmd_runner_fmt.as_map({
|
||||
True: "--usr_srv_records",
|
||||
False: "--no-usr_srv_records",
|
||||
}),
|
||||
use_srv_records=cmd_runner_fmt.as_bool("--usr_srv_records", "--no-usr_srv_records", ignore_none=True),
|
||||
logdest=cmd_runner_fmt.as_map(_logdest_map, default=[]),
|
||||
modulepath=cmd_runner_fmt.as_opt_eq_val("--modulepath"),
|
||||
_execute=cmd_runner_fmt.as_func(execute_func),
|
||||
|
||||
Reference in New Issue
Block a user