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:
parent
7988266bb7
commit
005233f814
3 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue