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
pull/44919/merge
Ganesh Nalawade 6 years ago committed by GitHub
parent 7988266bb7
commit 005233f814
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save