diff --git a/lib/ansible/modules/network/nxos/nxos_linkagg.py b/lib/ansible/modules/network/nxos/nxos_linkagg.py index bf1df1d2a83..f858945d953 100644 --- a/lib/ansible/modules/network/nxos/nxos_linkagg.py +++ b/lib/ansible/modules/network/nxos/nxos_linkagg.py @@ -327,7 +327,7 @@ def map_config_to_obj(module): try: channels = output['TABLE_channel']['ROW_channel'] - except KeyError: + except (TypeError, KeyError): return objs if channels: