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':