From 19004f89ec34503d937897dac44e84be9ea6c47b Mon Sep 17 00:00:00 2001 From: Richard Ipsum Date: Fri, 14 Mar 2014 15:28:13 +0000 Subject: 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 --- morphlib/plugins/deploy_plugin.py | 5 +++-- 1 file 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' -- cgit v1.2.1