From 89cfdef45f37a8d57bce71a62be8246ea3f895e9 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 26 Dec 2019 18:13:30 +0200 Subject: Change: use get_builder_from_target_mount_point in files plugin This way use doesn't need to specify any tags. --- vmdb/plugins/files_plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vmdb/plugins/files_plugin.py b/vmdb/plugins/files_plugin.py index c4b33e9..d7a1097 100644 --- a/vmdb/plugins/files_plugin.py +++ b/vmdb/plugins/files_plugin.py @@ -34,7 +34,7 @@ class CreateFileStepRunner(vmdb.StepRunnerInterface): return ['create-file', 'contents'] def run(self, step, settings, state): - root = state.tags.get_builder_mount_point('/') + root = state.tags.get_builder_from_target_mount_point('/') newfile = step['create-file'] contents = step['contents'] perm = step.get('perm', 0o644) @@ -58,7 +58,7 @@ class CopyFileStepRunner(vmdb.StepRunnerInterface): return ['copy-file', 'src'] def run(self, step, settings, state): - root = state.tags.get_builder_mount_point('/') + root = state.tags.get_builder_from_target_mount_point('/') newfile = step['copy-file'] src = step['src'] perm = step.get('perm', 0o644) @@ -88,7 +88,7 @@ class CreateDirStepRunner(vmdb.StepRunnerInterface): return ['create-dir'] def run(self, step, settings, state): - root = state.tags.get_builder_mount_point('/') + root = state.tags.get_builder_from_target_mount_point('/') newdir = step['create-dir'] path = '/'.join([root, newdir]) perm = step.get('perm', 0o755) -- cgit v1.2.1