bugfix for download image function return value 57/14957/1
authorMatthewLi <matthew.lijun@huawei.com>
Wed, 1 Jun 2016 10:39:40 +0000 (06:39 -0400)
committerMatthewLi <matthew.lijun@huawei.com>
Wed, 1 Jun 2016 10:39:40 +0000 (06:39 -0400)
JIRA: BOTTLENECK-86

Change-Id: Ia76b833bdec7554468ce081d3d572e87cea2d9f7
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
testsuites/rubbos/run_rubbos.py
testsuites/vstf/run_vstf.py

index 18aeab6..afe653f 100755 (executable)
@@ -73,7 +73,7 @@ def _download_url(src_url, dest_dir):
 
     with open(dest, 'wb') as f:
         shutil.copyfileobj(response, f)
-    return file_name
+    return dest
 
 
 def rubbos_stack_satisfy(name="bottlenecks_rubbos_stack", status="CREATE_COMPLETE"):
index 4ea5666..1529264 100755 (executable)
@@ -72,7 +72,7 @@ def _download_url(src_url, dest_dir):
 
     with open(dest, 'wb') as f:
         shutil.copyfileobj(response, f)
-    return file_name
+    return dest
 
 def vstf_stack_satisfy(name="bottlenecks_vstf_stack", status="CREATE_COMPLETE"):
     heat = _get_heat_client()