mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 04:40:22 -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
|
@ -235,7 +235,7 @@ def get_running_config(module):
|
|||
if module.params['defaults']:
|
||||
flags.append('all')
|
||||
contents = get_config(module, flags=flags)
|
||||
return NetworkConfig(indent=1, contents=contents)
|
||||
return NetworkConfig(indent=2, contents=contents)
|
||||
|
||||
def get_candidate(module):
|
||||
candidate = NetworkConfig(indent=2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue