diff --git a/changelogs/fragments/nxos_linkagg_bugfix_2.5.6.yaml b/changelogs/fragments/nxos_linkagg_bugfix_2.5.6.yaml new file mode 100644 index 00000000000..5d84e381463 --- /dev/null +++ b/changelogs/fragments/nxos_linkagg_bugfix_2.5.6.yaml @@ -0,0 +1,2 @@ +bugfixes: +- Fix nxos_linkagg (https://github.com/ansible/ansible/pull/41550). diff --git a/lib/ansible/modules/network/nxos/nxos_linkagg.py b/lib/ansible/modules/network/nxos/nxos_linkagg.py index f36ff090ccc..f3f47a316aa 100644 --- a/lib/ansible/modules/network/nxos/nxos_linkagg.py +++ b/lib/ansible/modules/network/nxos/nxos_linkagg.py @@ -349,7 +349,7 @@ def map_config_to_obj(module): try: channels = output['TABLE_channel']['ROW_channel'] - except KeyError: + except (TypeError, KeyError): return objs if channels: