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:
parent
a5b32fa0d1
commit
0ef16b44ca
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue