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

Check that required arguments src and dest are present.

Fixes #16301
This commit is contained in:
Toshio Kuratomi 2016-06-15 09:37:09 -07:00
parent a7639896a2
commit 16211e7dab

View file

@ -266,6 +266,10 @@ class ActionModule(ActionBase):
# MUNGE SRC AND DEST PER REMOTE_HOST INFO
src = self._task.args.get('src', None)
dest = self._task.args.get('dest', None)
if src is None or dest is None:
return dict(failed=True,
msg="synchronize requires both src and dest parameters are set")
if not dest_is_local:
# Private key handling
if use_delegate: