diff --git a/changelogs/fragments/eos_vrf_failure-fix.yml b/changelogs/fragments/eos_vrf_failure-fix.yml new file mode 100644 index 00000000000..f2e0fbc5fc1 --- /dev/null +++ b/changelogs/fragments/eos_vrf_failure-fix.yml @@ -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) diff --git a/lib/ansible/modules/network/eos/eos_vrf.py b/lib/ansible/modules/network/eos/eos_vrf.py index c773355c3ae..d8c4da85bd7 100644 --- a/lib/ansible/modules/network/eos/eos_vrf.py +++ b/lib/ansible/modules/network/eos/eos_vrf.py @@ -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:]