diff options
author | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2013-04-04 10:43:41 +0100 |
---|---|---|
committer | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2013-04-04 10:43:41 +0100 |
commit | 4c9702fee72001252900df40fcb543e7b0830f2b (patch) | |
tree | 6f6690a1d91186068a1f22da41d5de31b8f2e8ea | |
parent | 8b8cce2f44cc912124c8c7cc0fb0af5315977833 (diff) | |
download | morph-4c9702fee72001252900df40fcb543e7b0830f2b.tar.gz |
Add TMPDIR to deploy extension environment
This adds TMPDIR to the environment of deployment extensions.
It uses the --tempdir setting from morph in the case that TMPDIR
is not already set.
-rw-r--r-- | morphlib/plugins/deploy_plugin.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/morphlib/plugins/deploy_plugin.py b/morphlib/plugins/deploy_plugin.py index 2b761240..90f9a818 100644 --- a/morphlib/plugins/deploy_plugin.py +++ b/morphlib/plugins/deploy_plugin.py @@ -141,6 +141,11 @@ class DeployPlugin(cliapp.Plugin): '%s is already set in the enviroment' % name) env[name] = value + if 'TMPDIR' not in env: + # morphlib.app already took care of ensuring the tempdir setting + # is good, so use it if we don't have one already set. + env['TMPDIR'] = self.app.settings['tempdir'] + # Run configuration extensions. self.app.status(msg='Configure system') names = artifact.source.morphology['configuration-extensions'] |