mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-23 12:33:59 -07:00
fixes issue in nxos_config when retrieving current config (#21843)
When parsing the configuration, the wrong indent level was set so the configurations could not be properly compared. Also noted that defaults: yes needed to be added to the integration tests to make the test cases valid, which is also included in this patch fixes #21828
This commit is contained in:
parent
06d0278290
commit
381f7209f8
3 changed files with 5 additions and 1 deletions
|
@ -14,6 +14,7 @@
|
|||
- name: configure device with config
|
||||
nxos_config:
|
||||
src: basic/config.j2
|
||||
defaults: yes
|
||||
provider: "{{ cli }}"
|
||||
register: result
|
||||
|
||||
|
@ -26,6 +27,7 @@
|
|||
- name: check device with config
|
||||
nxos_config:
|
||||
src: basic/config.j2
|
||||
defaults: yes
|
||||
provider: "{{ cli }}"
|
||||
register: result
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
src: basic/config.j2
|
||||
provider: "{{ cli }}"
|
||||
match: none
|
||||
defaults: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
@ -28,6 +29,7 @@
|
|||
nxos_config:
|
||||
src: basic/config.j2
|
||||
provider: "{{ cli }}"
|
||||
defaults: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue