diff --git a/lib/ansible/modules/network/cnos/cnos_vrf.py b/lib/ansible/modules/network/cnos/cnos_vrf.py index 684f1d9f6f2..5196af0cabc 100644 --- a/lib/ansible/modules/network/cnos/cnos_vrf.py +++ b/lib/ansible/modules/network/cnos/cnos_vrf.py @@ -247,7 +247,7 @@ def map_config_to_obj(module): if '!' not in intName and 'Interfaces' not in intName: obj['interfaces'].append(intName.strip().lower()) objs.append(obj) - else: + else: module.fail_json(msg='Could not fetch VRF details from device') return objs