Merge pull request #16308 from abadger/synchronize-check-required

Check that required arguments src and dest are present.
pull/16313/head
Toshio Kuratomi 9 years ago committed by GitHub
commit 4ea5f77062

@ -266,6 +266,10 @@ class ActionModule(ActionBase):
# MUNGE SRC AND DEST PER REMOTE_HOST INFO # MUNGE SRC AND DEST PER REMOTE_HOST INFO
src = self._task.args.get('src', None) src = self._task.args.get('src', None)
dest = self._task.args.get('dest', 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: if not dest_is_local:
# Private key handling # Private key handling
if use_delegate: if use_delegate:

Loading…
Cancel
Save