From 7a711cf942b19a508f45da38b418d9f8317ef1d9 Mon Sep 17 00:00:00 2001 From: Mike Wiebe Date: Mon, 12 Feb 2018 00:00:38 -0500 Subject: [PATCH] Fix nxos_igmp_interface for diff nxos versions (#35959) --- lib/ansible/modules/network/nxos/nxos_igmp_interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/network/nxos/nxos_igmp_interface.py b/lib/ansible/modules/network/nxos/nxos_igmp_interface.py index 163f5a638eb..718152609eb 100644 --- a/lib/ansible/modules/network/nxos/nxos_igmp_interface.py +++ b/lib/ansible/modules/network/nxos/nxos_igmp_interface.py @@ -339,9 +339,9 @@ def get_igmp_interface(module, interface): igmp['report_llg'] = False immediate_leave = str(resource['ImmediateLeave']).lower() # returns en or dis - if immediate_leave == 'en' or immediate_leave == 'true': + if re.search(r'^en|^true|^enabled', immediate_leave): igmp['immediate_leave'] = True - elif immediate_leave == 'dis' or immediate_leave == 'false': + elif re.search(r'^dis|^false|^disabled', immediate_leave): igmp['immediate_leave'] = False # the next block of code is used to retrieve anything with: