diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-03-14 15:28:13 +0000 |
---|---|---|
committer | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-03-26 22:10:01 +0000 |
commit | 19004f89ec34503d937897dac44e84be9ea6c47b (patch) | |
tree | 0114eba433ace49b6f7b1fd9dff170c07ca13d8c /morphlib/plugins/deploy_plugin.py | |
parent | 7a9f0d114c01a8c18d1ea74a7b2db85c967d8c41 (diff) | |
download | morph-19004f89ec34503d937897dac44e84be9ea6c47b.tar.gz |
Fix deploy
tarfile's open needs the file-like object
to have a tell() method, objects returned
from sockets don't have this method.
So instead we fetch the artifact from the
remote and cache it locally
Diffstat (limited to 'morphlib/plugins/deploy_plugin.py')
-rw-r--r-- | morphlib/plugins/deploy_plugin.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/morphlib/plugins/deploy_plugin.py b/morphlib/plugins/deploy_plugin.py index 47cd00c1..90c658a0 100644 --- a/morphlib/plugins/deploy_plugin.py +++ b/morphlib/plugins/deploy_plugin.py @@ -1,4 +1,4 @@ -# Copyright (C) 2013 Codethink Limited +# Copyright (C) 2013, 2014 Codethink Limited # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -383,7 +383,8 @@ class DeployPlugin(cliapp.Plugin): if build_command.lac.has(artifact): f = build_command.lac.get(artifact) elif build_command.rac.has(artifact): - f = build_command.rac.get(artifact) + build_command.cache_artifacts_locally([artifact]) + f = build_command.lac.get(artifact) else: raise cliapp.AppException('Deployment failed as system is' ' not yet built.\nPlease ensure' |