mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-31 15:53:09 +00:00
Fix iosxr_config integration test failure (#44969)
* Check for commands presence in case running config is used as base config for diff * Correct the fixtures
This commit is contained in:
@@ -284,7 +284,7 @@ def run(module, result):
|
||||
commands = ['load harddisk:/ansible_config.txt']
|
||||
replace_file_path = 'harddisk:/ansible_config.txt'
|
||||
|
||||
if config_diff:
|
||||
if config_diff or commands:
|
||||
if not replace_config:
|
||||
commands = config_diff.split('\n')
|
||||
|
||||
|
||||
@@ -31,3 +31,5 @@ netconf-yang agent
|
||||
!
|
||||
ssh server v2
|
||||
ssh server netconf vrf default
|
||||
!
|
||||
end
|
||||
|
||||
@@ -25,3 +25,5 @@ netconf-yang agent
|
||||
!
|
||||
ssh server v2
|
||||
ssh server netconf vrf default
|
||||
!
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user