From c8d3acb75fd257cf9592727270d82d6f928b17cc Mon Sep 17 00:00:00 2001 From: Mikhail Emelchenkov Date: Tue, 22 Feb 2022 11:03:59 +0300 Subject: [PATCH] Fix: synchronize directories contains spaces in their paths --- plugins/modules/synchronize.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/modules/synchronize.py b/plugins/modules/synchronize.py index 86cf360d43..e22a0d6616 100644 --- a/plugins/modules/synchronize.py +++ b/plugins/modules/synchronize.py @@ -430,8 +430,8 @@ def main(): except ValueError: module.fail_json(msg='Could not determine controller hostname for rsync to send to') else: - source = module.params['src'] - dest = module.params['dest'] + source = '"' + module.params['src'] + '"' + dest = '"' + module.params['dest'] + '"' dest_port = module.params['dest_port'] delete = module.params['delete'] private_key = module.params['private_key']