mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Fix ios_system lookup enable issue (#30263)
Fixes #29974 Add `None` check while comparing module parameter values (want) with the actual configuration present on device (have).
This commit is contained in:
@@ -33,6 +33,30 @@
|
||||
that:
|
||||
- result.changed == false
|
||||
|
||||
- name: Disable lookup_source
|
||||
ios_system:
|
||||
lookup_enabled: False
|
||||
provider: "{{ cli }}"
|
||||
authorize: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- result.changed == true
|
||||
- "'no ip domain lookup' in result.commands"
|
||||
|
||||
- name: Disable lookup_source
|
||||
ios_system:
|
||||
lookup_enabled: True
|
||||
provider: "{{ cli }}"
|
||||
authorize: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- result.changed == true
|
||||
- "'ip domain lookup' in result.commands"
|
||||
|
||||
#- name: change to vrf
|
||||
# ios_system:
|
||||
# lookup_source:
|
||||
|
||||
Reference in New Issue
Block a user