Fix nxos_igmp_interface for diff nxos versions (#35959) (#36020)

* Fix nxos_igmp_interface for diff nxos versions (#35959)

(cherry picked from commit 7a711cf942)

* update CHANGELOG

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
pull/36258/head
Trishna Guha 8 years ago committed by GitHub
parent c6a5a27531
commit 9fcff68ae1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -48,6 +48,8 @@ Ansible Changes By Release
https://github.com/ansible/ansible/pull/35853
* Fix memory ballooning caused as a result of task caching changes
https://github.com/ansible/ansible/pull/35921
* Fix nxos_igmp_interface for diff nxos versions
(https://github.com/ansible/ansible/pull/35959)
<a id="2.4.3"></a>

@ -342,9 +342,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:

Loading…
Cancel
Save