mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 23:21:22 -07:00
Implement omit for module args, also add tests for it
This commit is contained in:
parent
bce6642ab6
commit
559c04f324
4 changed files with 46 additions and 21 deletions
|
@ -787,6 +787,10 @@ def _validate_both_dicts(a, b):
|
|||
"failed to combine variables, expected dicts but got a '%s' and a '%s'" % (type(a).__name__, type(b).__name__)
|
||||
)
|
||||
|
||||
def serialize_args(args):
|
||||
''' convert a dict to a string of key/value items '''
|
||||
return ' '.join("%s='%s'" % item for item in args.iteritems())
|
||||
|
||||
def merge_hash(a, b):
|
||||
''' recursively merges hash b into a
|
||||
keys from b take precedence over keys from a '''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue