summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vmdb/plugins/debootstrap_plugin.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/vmdb/plugins/debootstrap_plugin.py b/vmdb/plugins/debootstrap_plugin.py
index 9f622a1..4922690 100644
--- a/vmdb/plugins/debootstrap_plugin.py
+++ b/vmdb/plugins/debootstrap_plugin.py
@@ -19,6 +19,7 @@
import vmdb
import subprocess
+
class DebootstrapPlugin(vmdb.Plugin):
def enable(self):
self.app.step_runners.add(DebootstrapStepRunner())
@@ -42,7 +43,10 @@ class DebootstrapStepRunner(vmdb.StepRunnerInterface):
target = state.tags.get_builder_mount_point(tag)
mirror = values["mirror"]
keyring = values["keyring"] or None
- arch = values["arch"] or subprocess.check_output(['dpkg', '--print-architecture'])
+ arch = (
+ values["arch"]
+ or subprocess.check_output(["dpkg", "--print-architecture"]).strip()
+ )
variant = values["variant"]
components = values["components"]