summaryrefslogtreecommitdiff
path: root/morphlib/plugins/deploy_plugin.py
diff options
context:
space:
mode:
authorRic Holland <richard.holland@codethink.co.uk>2013-03-07 14:51:20 +0000
committerRic Holland <richard.holland@codethink.co.uk>2013-03-07 14:51:20 +0000
commit65d93b95b70e2e889367f936cf678ce898c4450f (patch)
treeba94914ddabc5ca39cc48304cb197468f01654fc /morphlib/plugins/deploy_plugin.py
parent9e61a67f416f2027fa296c04e59af1feaa5e9921 (diff)
downloadmorph-65d93b95b70e2e889367f936cf678ce898c4450f.tar.gz
Fixed 'morph deploy' to obey --tempdir
Allowed user to set the location of the temp directory using --tempdir
Diffstat (limited to 'morphlib/plugins/deploy_plugin.py')
-rw-r--r--morphlib/plugins/deploy_plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/morphlib/plugins/deploy_plugin.py b/morphlib/plugins/deploy_plugin.py
index f9a345ff..ac403cdd 100644
--- a/morphlib/plugins/deploy_plugin.py
+++ b/morphlib/plugins/deploy_plugin.py
@@ -111,8 +111,8 @@ class DeployPlugin(cliapp.Plugin):
# Unpack the artifact (tarball) to a temporary directory.
self.app.status(msg='Unpacking system for configuration')
- system_tree = tempfile.mkdtemp()
-
+ system_tree = tempfile.mkdtemp(dir=self.app.settings['tempdir'])
+
if build_command.lac.has(artifact):
f = build_command.lac.get(artifact)
else: