From f4c1378ae529a32f5f02c5dea87feb6b44d2c33c Mon Sep 17 00:00:00 2001 From: Ajay Chenampara Date: Fri, 13 Sep 2019 01:34:36 -0400 Subject: [PATCH] Update junos_config.py (#62221) Add the commands alias to match UX of IOS, EOS etc. (cherry picked from commit 991b865cb633ba5a903978016894d53b9df80e7d) --- changelogs/fragments/junos_config_lines_alias.yaml | 2 ++ lib/ansible/modules/network/junos/junos_config.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/junos_config_lines_alias.yaml diff --git a/changelogs/fragments/junos_config_lines_alias.yaml b/changelogs/fragments/junos_config_lines_alias.yaml new file mode 100644 index 00000000000..7213974f92c --- /dev/null +++ b/changelogs/fragments/junos_config_lines_alias.yaml @@ -0,0 +1,2 @@ +bugfixes: +- junos_config - Add commands alias to lines option to be in sync with other platforms (https://github.com/ansible/ansible/pull/62221) diff --git a/lib/ansible/modules/network/junos/junos_config.py b/lib/ansible/modules/network/junos/junos_config.py index f6b353af6cd..fc7ba9064d8 100644 --- a/lib/ansible/modules/network/junos/junos_config.py +++ b/lib/ansible/modules/network/junos/junos_config.py @@ -371,7 +371,7 @@ def main(): dir_path=dict(type='path') ) argument_spec = dict( - lines=dict(type='list'), + lines=dict(aliases=['commands'], type='list'), src=dict(type='path'), src_format=dict(choices=['xml', 'text', 'set', 'json']),