summaryrefslogtreecommitdiff
path: root/lorrycontroller/gerrit.py
diff options
context:
space:
mode:
Diffstat (limited to 'lorrycontroller/gerrit.py')
-rw-r--r--lorrycontroller/gerrit.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lorrycontroller/gerrit.py b/lorrycontroller/gerrit.py
index 6ae24e3..4e77ba7 100644
--- a/lorrycontroller/gerrit.py
+++ b/lorrycontroller/gerrit.py
@@ -34,7 +34,8 @@ class Gerrit(object):
'%s@%s' % (user, host)]
def _ssh_command(self, command):
- out = cliapp.runcmd(self._ssh_command_args + command)
+ quoted_args = [cliapp.shell_quote(x) for x in command]
+ out = cliapp.runcmd(self._ssh_command_args + quoted_args)
if isinstance(out, bytes):
out = out.decode('utf-8', errors='replace')
return out