summaryrefslogtreecommitdiffstats
path: root/deploy/post/execute.py
diff options
context:
space:
mode:
authorAlex Yang <yangyang1@zte.com.cn>2017-03-17 08:57:39 +0800
committerAlex Yang <yangyang1@zte.com.cn>2017-03-20 15:32:43 +0800
commit9896291cd4f04519acc33ceeb5f9149174b2eb81 (patch)
tree6b5f39598d2b6bbc4e922add3f7f63d7f54480b1 /deploy/post/execute.py
parente4485f2bb507a77012e4d21bd63357ef04b1d204 (diff)
use local cirros image in post-deploy script
In daisy building job, cirros image is packed in daisy image file. And it would be copied to /var/lib/daisy/images/ directory after daisy installed. The post-deploy script can use it locally. Change-Id: I45adbdd8b7c87b574367820076f6019638310ed8 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
Diffstat (limited to 'deploy/post/execute.py')
-rw-r--r--deploy/post/execute.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deploy/post/execute.py b/deploy/post/execute.py
index b9665e10..288e949b 100644
--- a/deploy/post/execute.py
+++ b/deploy/post/execute.py
@@ -64,7 +64,7 @@ def _prepare_cirros():
url = 'http://download.cirros-cloud.net'
version = '0.3.5'
name = 'cirros-{}-x86_64-disk.img'.format(version)
- img = os.path.join(os.path.abspath(os.path.dirname(__file__)), name)
+ img = os.path.join("/var/lib/daisy/images", name)
if not os.path.isfile(img):
cmd = "wget %(url)s/%(version)s/%(name)s -O %(path)s" % {
'url': url,