← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~twom/lpbuildbot-worker:fix-format-location into lpbuildbot-worker:main

 

Tom Wardill has proposed merging ~twom/lpbuildbot-worker:fix-format-location into lpbuildbot-worker:main.

Commit message:
Fix invalid format location

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~twom/lpbuildbot-worker/+git/lpbuildbot-worker/+merge/388820
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~twom/lpbuildbot-worker:fix-format-location into lpbuildbot-worker:main.
diff --git a/create-lp-tests-lxd b/create-lp-tests-lxd
index bf44933..7100a79 100755
--- a/create-lp-tests-lxd
+++ b/create-lp-tests-lxd
@@ -110,9 +110,11 @@ def create_new_instance(client, image_name, series, code_directory):
         "profiles": ["default"],
         "type": "container",
         "source": {"type": "image", "fingerprint": image.fingerprint},
-        "config": {"raw.idmap": "uid {} 1001\ngid {} 1001"}.format(
-            getpwnam("buildbot").pw_uid, getpwnam("buildbot").pw_gid
-        ),
+        "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"}
         },