win_copy: allow src to have invalid windows chars (#31392)

* win_copy: allow src to have invalid windows chars

* create file with colon instead of avoid checkout errors
This commit is contained in:
Jordan Borean 2017-10-06 15:23:37 +10:00 committed by GitHub
commit c4b51009f0
5 changed files with 37 additions and 4 deletions

View file

@ -473,6 +473,8 @@ class ActionModule(ActionBase):
symlinks=source_files['symlinks']
)
)
# src is not required for query, will fail path validation is src has unix allowed chars
query_args.pop('src', None)
query_args.pop('content', None)
query_return = self._execute_module(module_args=query_args, task_vars=task_vars)