summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2014-03-14 15:28:13 +0000
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2014-03-26 22:10:01 +0000
commit19004f89ec34503d937897dac44e84be9ea6c47b (patch)
tree0114eba433ace49b6f7b1fd9dff170c07ca13d8c
parent7a9f0d114c01a8c18d1ea74a7b2db85c967d8c41 (diff)
downloadmorph-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
-rw-r--r--morphlib/plugins/deploy_plugin.py5
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'