1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02: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:
Ganesh Nalawade 2018-08-31 19:57:38 +05:30 committed by GitHub
parent 7988266bb7
commit 005233f814
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View file

@ -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')

View file

@ -31,3 +31,5 @@ netconf-yang agent
!
ssh server v2
ssh server netconf vrf default
!
end

View file

@ -25,3 +25,5 @@ netconf-yang agent
!
ssh server v2
ssh server netconf vrf default
!
end