mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-07 06:34:23 -07:00
fix lint
This commit is contained in:
parent
2622de7fef
commit
7bf066116b
2 changed files with 51 additions and 49 deletions
1
ansible
Submodule
1
ansible
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit fe2d9e316a38c96b798e830acc0a1314c35b8ef4
|
|
@ -36,16 +36,16 @@ options:
|
|||
default: true
|
||||
required: false
|
||||
matching_parameter:
|
||||
description: Specify the matching option of target keys.
|
||||
description: Specify the matching option of values.
|
||||
type: str
|
||||
default: equal
|
||||
choices:
|
||||
equal: Matches keys of equally one of the O(target[].before) items.
|
||||
regex: Matches keys that match one of the regular expressions provided in O(target[].before).:
|
||||
equal: Matches values of equally one of the O(values[]) items.
|
||||
regex: Matches values that match one of the regular expressions provided in O(values[]).
|
||||
"""
|
||||
|
||||
EXAMPLES = r"""
|
||||
- name: Remove empty keys from a list of dictionaries
|
||||
- name: Remove empty values from a list of dictionaries
|
||||
set_fact:
|
||||
my_list:
|
||||
- a: foo
|
||||
|
@ -205,6 +205,7 @@ def remove_keys_from_values(data, values=None, recursive=True, matching_paramete
|
|||
|
||||
return clean(data)
|
||||
|
||||
|
||||
class FilterModule(object):
|
||||
def filters(self):
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue