summaryrefslogtreecommitdiffstats
path: root/dovetail/container.py
diff options
context:
space:
mode:
Diffstat (limited to 'dovetail/container.py')
-rw-r--r--dovetail/container.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/dovetail/container.py b/dovetail/container.py
index ca37d810..8069ea47 100644
--- a/dovetail/container.py
+++ b/dovetail/container.py
@@ -106,6 +106,9 @@ class Container(object):
else:
cls.logger.error("Can't find any external network.")
return None
+ insecure = os.getenv("OS_INSECURE")
+ if insecure and insecure.lower() == 'true':
+ envs = envs + " -e OS_CACERT=False "
log_vol = '-v %s:%s ' % (dovetail_config['result_dir'],
dovetail_config["yardstick"]['result']['log'])
@@ -356,9 +359,9 @@ class Container(object):
cls.pre_copy(container_id, src, dest)
url = dt_cfg.dovetail_config['report_dest']
if url.startswith("http"):
- cmd = ("sed -i '16s#http://127.0.0.1:8000/results#{}#g' {}"
+ cmd = ("sed -i '17s#http://127.0.0.1:8000/results#{}#g' {}"
.format(url, dest))
cls.exec_cmd(container_id, cmd)
if url.lower() == 'file':
- cmd = ("sed -i '12s/http/file/g' {}".format(dest))
+ cmd = ("sed -i '13s/http/file/g' {}".format(dest))
cls.exec_cmd(container_id, cmd)