launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #25117
[Merge] ~twom/lpbuildbot-worker:fix-package-name into lpbuildbot-worker:main
Tom Wardill has proposed merging ~twom/lpbuildbot-worker:fix-package-name into lpbuildbot-worker:main.
Commit message:
Fix the package name to match the project name
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~twom/lpbuildbot-worker/+git/lpbuildbot-worker/+merge/388815
--
Your team Launchpad code reviewers is requested to review the proposed merge of ~twom/lpbuildbot-worker:fix-package-name into lpbuildbot-worker:main.
diff --git a/create-lp-tests-lxd b/create-lp-tests-lxd
index 8aa74ab..bf44933 100755
--- a/create-lp-tests-lxd
+++ b/create-lp-tests-lxd
@@ -3,6 +3,7 @@
import argparse
from os.path import expanduser
from pathlib import Path
+from pwd import getpwnam
import shlex
import sys
@@ -109,7 +110,9 @@ def create_new_instance(client, image_name, series, code_directory):
"profiles": ["default"],
"type": "container",
"source": {"type": "image", "fingerprint": image.fingerprint},
- "config": {"raw.idmap": "uid 112 1001\ngid 116 1001"},
+ "config": {"raw.idmap": "uid {} 1001\ngid {} 1001"}.format(
+ getpwnam("buildbot").pw_uid, getpwnam("buildbot").pw_gid
+ ),
"devices": {
"build": {"path": code_directory, "source": code_directory, "type": "disk"}
},