simplify cmd_runner_fmt.as_bool_not() (#8512)
* simplify cmd_runner_fmt.as_bool_not() * add changelog fragpull/8531/merge
parent
03966624ba
commit
ec4cf55566
|
@ -0,0 +1,2 @@
|
|||
minor_changes:
|
||||
- cmd_runner_fmt module utils - simplify implementation of ``cmd_runner_fmt.as_bool_not()`` (https://github.com/ansible-collections/community.general/pull/8512).
|
|
@ -127,7 +127,7 @@ class _Format(object):
|
|||
|
||||
@staticmethod
|
||||
def as_bool_not(args):
|
||||
return _ArgFormat(lambda value: [] if value else _ensure_list(args), ignore_none=False)
|
||||
return _Format.as_bool([], args, ignore_none=False)
|
||||
|
||||
@staticmethod
|
||||
def as_optval(arg, ignore_none=None):
|
||||
|
|
Loading…
Reference in New Issue