From c387a5043e9db2ec87699ea5fd2b08b40d12e882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kundr=C3=A1t?= Date: Mon, 1 Dec 2014 18:39:07 +0100 Subject: Fix passing labels to Gerrit when they are not defined in All-Projects Turns out that the shortcut --verified or --code-review only work when these labels are defined globally for all projects [1]. The other syntax with a --label works fine even when e.g. the Verified label is being used just for a subset of projects. [1] https://gerrit-review.googlesource.com/#/c/51800/1/Documentation/cmd-review.txt Change-Id: Ib591997141b68708bee0b291bb88a93cd3294301 --- zuul/lib/gerrit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zuul/lib/gerrit.py b/zuul/lib/gerrit.py index 799459d47..67400216a 100644 --- a/zuul/lib/gerrit.py +++ b/zuul/lib/gerrit.py @@ -120,7 +120,7 @@ class Gerrit(object): if v is True: cmd += ' --%s' % k else: - cmd += ' --%s %s' % (k, v) + cmd += ' --label %s=%s' % (k, v) cmd += ' %s' % change out, err = self._ssh(cmd) return err -- cgit v1.2.1