diff --git a/lib/ansible/modules/network/nxos/nxos_linkagg.py b/lib/ansible/modules/network/nxos/nxos_linkagg.py index 2744f50e23..cea120d96d 100644 --- a/lib/ansible/modules/network/nxos/nxos_linkagg.py +++ b/lib/ansible/modules/network/nxos/nxos_linkagg.py @@ -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'),