summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lorrycontroller/gerrit.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lorrycontroller/gerrit.py b/lorrycontroller/gerrit.py
index dd82ff8..c18f2ed 100644
--- a/lorrycontroller/gerrit.py
+++ b/lorrycontroller/gerrit.py
@@ -42,7 +42,8 @@ class GerritDownstream(hosts.DownstreamHost):
'%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