Fix: synchronize directories contains spaces in their paths

This commit is contained in:
Mikhail Emelchenkov 2022-02-22 11:03:59 +03:00
parent 62d060a173
commit c8d3acb75f

View file

@ -430,8 +430,8 @@ def main():
except ValueError: except ValueError:
module.fail_json(msg='Could not determine controller hostname for rsync to send to') module.fail_json(msg='Could not determine controller hostname for rsync to send to')
else: else:
source = module.params['src'] source = '"' + module.params['src'] + '"'
dest = module.params['dest'] dest = '"' + module.params['dest'] + '"'
dest_port = module.params['dest_port'] dest_port = module.params['dest_port']
delete = module.params['delete'] delete = module.params['delete']
private_key = module.params['private_key'] private_key = module.params['private_key']