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
This commit is contained in:
Peter Sprygada 2016-09-26 22:43:05 -04:00 committed by Matt Clay
parent a5b32fa0d1
commit 0ef16b44ca

View file

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