1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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.
This commit is contained in:
Ganesh Nalawade 2017-02-01 21:18:18 +05:30 committed by Nathaniel Case
parent 6726d5f8f8
commit 511f2b7907

View file

@ -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,