launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #28415
[Merge] ~cjwatson/lpbuildbot-worker:py3 into lpbuildbot-worker:main
Colin Watson has proposed merging ~cjwatson/lpbuildbot-worker:py3 into lpbuildbot-worker:main.
Commit message:
Update buildbot group ID detection to use Python 3
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~cjwatson/lpbuildbot-worker/+git/lpbuildbot-worker/+merge/421456
--
Your team Launchpad code reviewers is requested to review the proposed merge of ~cjwatson/lpbuildbot-worker:py3 into lpbuildbot-worker:main.
diff --git a/create-lp-tests-lxd b/create-lp-tests-lxd
index 8e2e916..45591d2 100755
--- a/create-lp-tests-lxd
+++ b/create-lp-tests-lxd
@@ -194,7 +194,7 @@ def install_code(container, series, directory):
_exec(container, ["adduser", "buildbot", "sudo"])
_, gid = _exec(
container,
- ["python", "-c", "import pwd; print pwd.getpwnam('buildbot').pw_gid"],
+ ["python3", "-c", "import pwd; print(pwd.getpwnam('buildbot').pw_gid)"],
return_stdout=True,
)
_exec(