summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-05-21 16:26:36 +0300
committerLars Wirzenius <liw@liw.fi>2017-05-21 16:26:36 +0300
commit99de5da065879b24330edef204e4bc9b74148852 (patch)
treed830406f9400f2bc59565502dcb32b2f10f19103
parent57b73a432ca95f916170ad101fbde918305098c7 (diff)
downloadvmdb2-99de5da065879b24330edef204e4bc9b74148852.tar.gz
Refactor: Use vmdb.runcmd instead of cliapp.runcmd
This give use more systematic logging and progress reporting of all commands we run.
-rw-r--r--vmdb/plugins/rootfs_cache_plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/vmdb/plugins/rootfs_cache_plugin.py b/vmdb/plugins/rootfs_cache_plugin.py
index d37b199..89eb3ec 100644
--- a/vmdb/plugins/rootfs_cache_plugin.py
+++ b/vmdb/plugins/rootfs_cache_plugin.py
@@ -50,7 +50,7 @@ class MakeCacheStepRunner(vmdb.StepRunnerInterface):
if not os.path.exists(tar_path):
vmdb.progress(
'Caching contents of {} to {}'.format(rootdir, tar_path))
- cliapp.runcmd(['tar', '-C', rootdir, '-caf', tar_path, '.'])
+ vmdb.runcmd(['tar', '-C', rootdir, '-caf', tar_path, '.'])
class UnpackCacheStepRunner(vmdb.StepRunnerInterface):
@@ -65,6 +65,6 @@ class UnpackCacheStepRunner(vmdb.StepRunnerInterface):
if os.path.exists(tar_path):
vmdb.progress(
'Unpacking rootfs from {} to {}'.format(tar_path, rootdir))
- cliapp.runcmd(
+ vmdb.runcmd(
['tar', '-C', rootdir, '-xf', tar_path, '--numeric-owner'])
state.rootfs_unpacked = True