summaryrefslogtreecommitdiff
path: root/vmdb/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'vmdb/app.py')
-rw-r--r--vmdb/app.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/vmdb/app.py b/vmdb/app.py
index 65bc568..bb84aa1 100644
--- a/vmdb/app.py
+++ b/vmdb/app.py
@@ -168,7 +168,9 @@ class ImageBuilder:
spec = self.load_spec_file(self._specfile)
state = vmdb.State()
state.tags = vmdb.Tags()
- state.arch = vmdb.runcmd(["dpkg", "--print-architecture"]).decode("UTF-8").strip()
+ state.arch = (
+ vmdb.runcmd(["dpkg", "--print-architecture"]).decode("UTF-8").strip()
+ )
self.add_template_vars(state.as_dict())
steps = spec.get_steps(self._tvars)
@@ -219,7 +221,6 @@ class ImageBuilder:
steps_taken = []
settings = {"rootfs-tarball": self._tarball}
- even_if_skipped = method_name + "_even_if_skipped"
for step in steps:
try:
logging.info(msg, step)
@@ -227,9 +228,9 @@ class ImageBuilder:
runner = self.step_runners.find(step)
if runner.skip(step, settings, state):
logging.info("Skipping as requested by unless")
- method_names = [even_if_skipped]
+ method_names = []
else:
- method_names = [method_name, even_if_skipped]
+ method_names = [method_name]
methods = [
getattr(runner, name)