fix param ordering to fix review function
the change id needs to come before the args, otherwise it can't parse the change id. Change-Id: I2d83fa3000cd4739f0d8ec5524aa3ca2391506de
This commit is contained in:
parent
139c168bb3
commit
d16c93bece
@ -133,7 +133,7 @@ class Gerrit(object):
|
||||
return out.split('\n')
|
||||
|
||||
def review(self, project, change, message, action={}):
|
||||
cmd = 'gerrit review --project %s' % project
|
||||
cmd = 'gerrit review %s --project %s' % (change, project)
|
||||
if message:
|
||||
cmd += ' --message "%s"' % message
|
||||
for k, v in action.items():
|
||||
@ -141,7 +141,6 @@ class Gerrit(object):
|
||||
cmd += ' --%s' % k
|
||||
else:
|
||||
cmd += ' --%s %s' % (k, v)
|
||||
cmd += ' %s' % change
|
||||
out, err = self._ssh(cmd)
|
||||
return err
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user