Fix quoting bug for paths with spaces
This commit is contained in:
parent
90e5133995
commit
6f0b1318d5
|
@ -112,7 +112,7 @@ def put(local_path, remote_path, owner='root:root', **kwargs):
|
||||||
kwargs.setdefault('mirror_local_mode', True)
|
kwargs.setdefault('mirror_local_mode', True)
|
||||||
kwargs['use_sudo'] = True
|
kwargs['use_sudo'] = True
|
||||||
fab_put(local_path, remote_path, **kwargs)
|
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):
|
def upload_template(local_path, remote_path, owner='root:root', **kwargs):
|
||||||
|
|
Loading…
Reference in a new issue