Fix quoting bug for paths with spaces

This commit is contained in:
Lance Edgar 2018-03-09 17:15:37 -06:00
parent 90e5133995
commit 6f0b1318d5

View file

@ -112,7 +112,7 @@ def put(local_path, remote_path, owner='root:root', **kwargs):
kwargs.setdefault('mirror_local_mode', True)
kwargs['use_sudo'] = True
fab_put(local_path, remote_path, **kwargs)
sudo('chown {0} {1}'.format(owner, remote_path))
sudo("chown {} '{}'".format(owner, remote_path))
def upload_template(local_path, remote_path, owner='root:root', **kwargs):