From 511f2b7907704f61ca170e7c095c2361161d416d Mon Sep 17 00:00:00 2001 From: Ganesh Nalawade Date: Wed, 1 Feb 2017 21:18:18 +0530 Subject: [PATCH] Fix update check issue (#20915) Add one of condition in required_if to ensure configuration statements are present if update value in provided in playbook. --- lib/ansible/modules/network/junos/junos_config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/network/junos/junos_config.py b/lib/ansible/modules/network/junos/junos_config.py index 164fb9fada..60cbee42d3 100644 --- a/lib/ansible/modules/network/junos/junos_config.py +++ b/lib/ansible/modules/network/junos/junos_config.py @@ -346,9 +346,9 @@ def main(): ('update', 'replace')] required_if = [('replace', True, ['src']), - ('update', 'merge', ('src', 'lines')), - ('update', 'overwrite', ('src', 'lines')), - ('update', 'replace', ('src', 'lines'))] + ('update', 'merge', ['src', 'lines'], True), + ('update', 'overwrite', ['src', 'lines'], True), + ('update', 'replace', ['src', 'lines'], True)] module = NetworkModule(argument_spec=argument_spec, mutually_exclusive=mutually_exclusive,