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:
description:
- Set logging severity levels.
collection:
aggregate:
description: List of logging definitions.
purge:
description:
- Purge logging not defined in the collections parameter.
- Purge logging not defined in the aggregates parameter.
default: no
state:
description:

View file

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

View file

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

View file

@ -41,7 +41,7 @@ options:
- The set of username objects to be configured on the remote
VyOS device. The list entries can either be the username or
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:
description:
- The username to be configured on the VyOS device.