Fix structured output not supported in nxos_pim_interface (#28125)

* fixed unstructured error

* fix unit tests so they accept commands in dictionary form
This commit is contained in:
David Newswanger 2017-08-14 03:04:05 -04:00 committed by Trishna Guha
commit a01aa6e9df
2 changed files with 12 additions and 3 deletions

View file

@ -47,6 +47,8 @@ class TestNxosIPInterfaceModule(TestNxosModule):
output = list()
for command in commands:
if type(command) == dict:
command = command['command']
filename = str(command).split(' | ')[0].replace(' ', '_').replace('/', '_')
output.append(load_fixture(module_name, filename))
return output