Skip to content

Commit

Permalink
Fix update check issue (ansible#20915)
Browse files Browse the repository at this point in the history
Add one of condition in required_if
to ensure configuration statements are
present if update value in provided in
playbook.
  • Loading branch information
ganeshrn authored and Qalthos committed Feb 1, 2017
1 parent 6726d5f commit 511f2b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ansible/modules/network/junos/junos_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 511f2b7

Please sign in to comment.