From ee5d5c3e847a86b212ce7282395f53c87ee60b82 Mon Sep 17 00:00:00 2001 From: Ganesh Nalawade Date: Fri, 16 Dec 2016 02:31:23 +0530 Subject: [PATCH] Fix #4103 Support json format in junos_command module (#19045) --- lib/ansible/modules/network/junos/junos_command.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/network/junos/junos_command.py b/lib/ansible/modules/network/junos/junos_command.py index c54061834a0..eb681d3919e 100644 --- a/lib/ansible/modules/network/junos/junos_command.py +++ b/lib/ansible/modules/network/junos/junos_command.py @@ -98,12 +98,13 @@ options: output and apply the conditionals path to the result set. required: false default: 'xml' - choices: ['xml', 'text'] + choices: ['xml', 'text', 'json'] requirements: - junos-eznc notes: - This module requires the netconf system service be enabled on - the remote device being managed + the remote device being managed. 'json' format is supported + for JUNON version >= 14.2 """ EXAMPLES = """ @@ -219,7 +220,7 @@ def main(): commands=dict(type='list'), rpcs=dict(type='list'), - display=dict(default='xml', choices=['text', 'xml'], + display=dict(default='xml', choices=['text', 'xml', 'json'], aliases=['format', 'output']), wait_for=dict(type='list', aliases=['waitfor']),