Quote group names in case of spaces

* gerritlib/gerrit.py(Gerrit.createGroup): Quote the group name in
the API call so that Gerrit won't get confused by spaces.

Change-Id: Iad7110bedc2b5b4090313fd70679f0552292a807
This commit is contained in:
Jeremy Stanley 2014-02-09 23:39:07 +00:00
parent 996343b115
commit 82df224c39
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ class Gerrit(object):
cmd = '%s --visible-to-all' % cmd
if owner:
cmd = '%s --owner %s' % (cmd, owner)
cmd = '%s %s' % (cmd, group)
cmd = '%s "%s"' % (cmd, group)
out, err = self._ssh(cmd)
return err