fixes exception being raised when show configuration command issued (#5047)

The junos_command expects commands to be returned as xml by default but
`show configuration [options]` will return text not xml.  This fix
will set the output format for any command that starts with `show
configuration` to text

fixes #4628
reviewable/pr18780/r1
Peter Sprygada 8 years ago committed by GitHub
parent e0aede1266
commit 87f47a44c9

@ -205,6 +205,10 @@ def parse(module, command_type):
item['command_type'] = command_type
# show configuration [options] will return as text
if item['command'].startswith('show configuration'):
item['output'] = 'text'
parsed.append(item)
return parsed

Loading…
Cancel
Save