doc fix
parent
1b34ebd896
commit
38986edc8e
|
@ -17,7 +17,7 @@ Version added: 2.5.2
|
||||||
|
|
||||||
Synopsis
|
Synopsis
|
||||||
--------
|
--------
|
||||||
- This plugin presents a collective structured data including all supplied facts grouping on common attributes mentioned.
|
- This plugin presents collective structured data including all supplied facts grouping on common attributes mentioned.
|
||||||
- All other boolean parameter defaults to False unless parameters is explicitly mentioned.
|
- All other boolean parameter defaults to False unless parameters is explicitly mentioned.
|
||||||
- Using the parameters below- ``data_source|ansible.utils.consolidate(fail_missing_match_key=False``))
|
- Using the parameters below- ``data_source|ansible.utils.consolidate(fail_missing_match_key=False``))
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ DOCUMENTATION = """
|
||||||
version_added: "2.5.2"
|
version_added: "2.5.2"
|
||||||
short_description: Consolidate facts together on common attributes.
|
short_description: Consolidate facts together on common attributes.
|
||||||
description:
|
description:
|
||||||
- This plugin presents a collective structured data including all supplied facts grouping on common attributes mentioned.
|
- This plugin presents collective structured data including all supplied facts grouping on common attributes mentioned.
|
||||||
- All other boolean parameter defaults to False unless parameters is explicitly mentioned.
|
- All other boolean parameter defaults to False unless parameters is explicitly mentioned.
|
||||||
- Using the parameters below- C(data_source|ansible.utils.consolidate(fail_missing_match_key=False)))
|
- Using the parameters below- C(data_source|ansible.utils.consolidate(fail_missing_match_key=False)))
|
||||||
options:
|
options:
|
||||||
|
@ -1221,9 +1221,7 @@ def _consolidate(*args, **kwargs):
|
||||||
]
|
]
|
||||||
data = dict(zip(keys, args[1:]))
|
data = dict(zip(keys, args[1:]))
|
||||||
data.update(kwargs)
|
data.update(kwargs)
|
||||||
aav = AnsibleArgSpecValidator(
|
aav = AnsibleArgSpecValidator(data=data, schema=DOCUMENTATION, name="consolidate")
|
||||||
data=data, schema=DOCUMENTATION, name="consolidate"
|
|
||||||
)
|
|
||||||
valid, errors, updated_data = aav.validate()
|
valid, errors, updated_data = aav.validate()
|
||||||
if not valid:
|
if not valid:
|
||||||
raise AnsibleFilterError(errors)
|
raise AnsibleFilterError(errors)
|
||||||
|
|
Loading…
Reference in New Issue