To fix eos_vrf failure when transport method is eapi (#41470) (#41771)

* To fix eos_vrf failure when transport method is eapi (#41470)

* resolve bug 40930

* resolve bug 40930

* to fix review comments

* to fix review comments

* reverting the changes based on review

(cherry picked from commit c989b62eef)

* adding changelog for backport
This commit is contained in:
Sumit Jaiswal 2018-06-22 04:50:46 +05:30 committed by Matt Clay
parent 5e10424f31
commit 273fb57ea8
2 changed files with 5 additions and 1 deletions

View file

@ -0,0 +1,4 @@
---
bugfixes:
- Changed the output to "text" for "show vrf" command as default "json" output format
with respect to "eapi" transport was failing (https://github.com/ansible/ansible/pull/41470)

View file

@ -189,7 +189,7 @@ def map_obj_to_commands(updates, module):
def map_config_to_obj(module):
objs = []
output = run_commands(module, ['show vrf'])
output = run_commands(module, {'command': 'show vrf', 'output': 'text'})
lines = output[0].strip().splitlines()[3:]