summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-12-26 18:13:30 +0200
committerLars Wirzenius <liw@liw.fi>2019-12-26 18:15:36 +0200
commit89cfdef45f37a8d57bce71a62be8246ea3f895e9 (patch)
tree69addafd5380ea5d19d1a78f06611215396a6884
parentb45f6c4360b86672c01b300f55bf8c84853733bd (diff)
downloadvmdb2-89cfdef45f37a8d57bce71a62be8246ea3f895e9.tar.gz
Change: use get_builder_from_target_mount_point in files plugin
This way use doesn't need to specify any tags.
-rw-r--r--vmdb/plugins/files_plugin.py6
1 files 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)