aboutsummaryrefslogtreecommitdiffstats
path: root/api/resources/v2/containers.py
diff options
context:
space:
mode:
authorchenjiankun <chenjiankun1@huawei.com>2017-09-29 08:13:55 +0000
committerJack Chan <chenjiankun1@huawei.com>2017-09-30 06:40:34 +0000
commit7e0574b0ef0c8aa7c52865f4d80f96018bd5821b (patch)
tree2f3a1a91fbf82641bd20f39b62e7e58b712b80a0 /api/resources/v2/containers.py
parent850593125ca388b7157f2a8e1966e05a1caa0ab1 (diff)
Remove checkno.png and checkyes.png due to license issue
JIRA: YARDSTICK-817 Since checkno.png and checkyes.png is not Apache-2 license based. so we need to remove them. Change-Id: I40dd303fb54a3736ca969ac1c186d2cd23408436 Signed-off-by: chenjiankun <chenjiankun1@huawei.com> (cherry picked from commit da0163b7b7aaf3ede4e757a0b7d94a5ea99b1083)
Diffstat (limited to 'api/resources/v2/containers.py')
-rw-r--r--api/resources/v2/containers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/resources/v2/containers.py b/api/resources/v2/containers.py
index 66dc94120..8a6e6f8a3 100644
--- a/api/resources/v2/containers.py
+++ b/api/resources/v2/containers.py
@@ -259,13 +259,13 @@ class V2Containers(ApiResource):
def _create_dashboard(self, ip):
url = 'http://admin:admin@{}:{}/api/dashboards/db'.format(ip, 3000)
- path = os.path.join(consts.REPOS_DIR, 'dashboard', '*dashboard.json')
+ path = os.path.join(consts.REPOS_DIR, 'dashboard', 'opnfv_yardstick_tc*.json')
for i in sorted(glob.iglob(path)):
with open(i) as f:
data = jsonutils.load(f)
try:
- HttpClient().post(url, data)
+ HttpClient().post(url, {'dashboard': data})
except Exception:
LOG.exception('Create dashboard %s failed', i)
raise