1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

change collection to aggregate (#27325)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
Trishna Guha 2017-07-26 20:36:56 +05:30 committed by GitHub
parent 058e67dcbe
commit 498bf4b5be
4 changed files with 10 additions and 10 deletions

View file

@ -52,11 +52,11 @@ options:
level: level:
description: description:
- Set logging severity levels. - Set logging severity levels.
collection: aggregate:
description: List of logging definitions. description: List of logging definitions.
purge: purge:
description: description:
- Purge logging not defined in the collections parameter. - Purge logging not defined in the aggregates parameter.
default: no default: no
state: state:
description: description:

View file

@ -55,11 +55,11 @@ options:
description: description:
- Set logging severity levels. - Set logging severity levels.
default: debugging default: debugging
collection: aggregate:
description: List of logging definitions. description: List of logging definitions.
purge: purge:
description: description:
- Purge logging not defined in the collections parameter. - Purge logging not defined in the aggregates parameter.
default: no default: no
state: state:
description: description:

View file

@ -48,11 +48,11 @@ options:
level: level:
description: description:
- Set logging severity levels. - Set logging severity levels.
collection: aggregate:
description: List of logging definitions. description: List of logging definitions.
purge: purge:
description: description:
- Purge logging not defined in the collections parameter. - Purge logging not defined in the aggregate parameter.
default: no default: no
state: state:
description: description:
@ -163,8 +163,8 @@ def config_to_dict(module):
def map_params_to_obj(module): def map_params_to_obj(module):
obj = [] obj = []
if 'collection' in module.params and module.params['collection']: if 'aggregate' in module.params and module.params['aggregate']:
for c in module.params['collection']: for c in module.params['aggregate']:
d = c.copy() d = c.copy()
if d['dest'] not in ('host', 'file', 'user'): if d['dest'] not in ('host', 'file', 'user'):
d['name'] = None d['name'] = None
@ -200,7 +200,7 @@ def main():
facility=dict(type='str'), facility=dict(type='str'),
level=dict(type='str'), level=dict(type='str'),
state=dict(default='present', choices=['present', 'absent']), state=dict(default='present', choices=['present', 'absent']),
collection=dict(type='list'), aggregate=dict(type='list'),
purge=dict(default=False, type='bool') purge=dict(default=False, type='bool')
) )

View file

@ -41,7 +41,7 @@ options:
- The set of username objects to be configured on the remote - The set of username objects to be configured on the remote
VyOS device. The list entries can either be the username or VyOS device. The list entries can either be the username or
a hash of username and properties. This argument is mutually a hash of username and properties. This argument is mutually
exclusive with the C(name) argument. exclusive with the C(name) argument. alias C(aggregate).
name: name:
description: description:
- The username to be configured on the VyOS device. - The username to be configured on the VyOS device.