From 1378861fe75fcae2d0ad7b880e70999112d20609 Mon Sep 17 00:00:00 2001 From: rahushen Date: Wed, 4 Oct 2017 03:23:44 -0400 Subject: [PATCH] Fixes nxos_igmp_interface idempotence issue for N1 images (#31220) --- 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 0a6e7b2495..de79dd13dd 100644 --- a/lib/ansible/modules/network/nxos/nxos_igmp_interface.py +++ b/lib/ansible/modules/network/nxos/nxos_igmp_interface.py @@ -335,13 +335,13 @@ def get_igmp_interface(module, interface): if body: resource = body['TABLE_vrf']['ROW_vrf']['TABLE_if']['ROW_if'] igmp = apply_key_map(key_map, resource) - report_llg = str(resource['ReportingForLinkLocal']) + report_llg = str(resource['ReportingForLinkLocal']).lower() if report_llg == 'true': igmp['report_llg'] = True elif report_llg == 'false': igmp['report_llg'] = False - immediate_leave = str(resource['ImmediateLeave']) # returns en or dis + immediate_leave = str(resource['ImmediateLeave']).lower() # returns en or dis if immediate_leave == 'en' or immediate_leave == 'true': igmp['immediate_leave'] = True elif immediate_leave == 'dis' or immediate_leave == 'false':