diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2013-06-06 10:17:10 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2013-06-06 10:17:10 +0000 |
commit | c8185c29c3d5d74a1709a440fa6a8bdbf9600cda (patch) | |
tree | ddc663b6a8bcedde7a411cb3ef78043573c5b39a /morphlib/plugins/deploy_plugin.py | |
parent | 367470bdbba737b6253c270de36cd583e4a3421e (diff) | |
download | morph-c8185c29c3d5d74a1709a440fa6a8bdbf9600cda.tar.gz |
Remove intermediate variables
I find it easier to read without them, since there are less variables
to remember.
Diffstat (limited to 'morphlib/plugins/deploy_plugin.py')
-rw-r--r-- | morphlib/plugins/deploy_plugin.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/morphlib/plugins/deploy_plugin.py b/morphlib/plugins/deploy_plugin.py index 6b3b128f..3b2eb388 100644 --- a/morphlib/plugins/deploy_plugin.py +++ b/morphlib/plugins/deploy_plugin.py @@ -137,9 +137,8 @@ class DeployPlugin(cliapp.Plugin): # Unpack the artifact (tarball) to a temporary directory. self.app.status(msg='Unpacking system for configuration') - deployment_dir = os.path.join(self.app.settings['tempdir'], - 'deployments') - system_tree = tempfile.mkdtemp(dir=deployment_dir) + system_tree = tempfile.mkdtemp( + dir=os.path.join(self.app.settings['tempdir'], 'deployments')) if build_command.lac.has(artifact): f = build_command.lac.get(artifact) |