mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
nxos_linkagg: group
type mismatch causes idempotency failure (#53653)
* nxos_linkagg: `group` type mismatch causes idempotency failure * `group` values need to be cast; e.g. ``` want = {'group': '20'} have = {'group': 20} ``` * Found with N7K `sanity` test * nxos_linkagg: change group param type to str
This commit is contained in:
parent
b044bb431e
commit
66fe6bfa0b
1 changed files with 2 additions and 2 deletions
|
@ -334,7 +334,7 @@ def parse_channel_options(module, output, channel):
|
|||
obj = {}
|
||||
|
||||
group = channel['group']
|
||||
obj['group'] = group
|
||||
obj['group'] = str(group)
|
||||
obj['min_links'] = parse_min_links(module, group)
|
||||
members = parse_members(output, group)
|
||||
obj['members'] = members
|
||||
|
@ -372,7 +372,7 @@ def main():
|
|||
""" main entry point for module execution
|
||||
"""
|
||||
element_spec = dict(
|
||||
group=dict(type='int'),
|
||||
group=dict(type='str'),
|
||||
mode=dict(required=False, choices=['on', 'active', 'passive'], default='on', type='str'),
|
||||
min_links=dict(required=False, default=None, type='int'),
|
||||
members=dict(required=False, default=None, type='list'),
|
||||
|
|
Loading…
Reference in a new issue