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
pull/18777/head
Peter Sprygada 8 years ago committed by Matt Clay
parent a5b32fa0d1
commit 0ef16b44ca

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