diff options
author | Jing Lu <lvjing5@huawei.com> | 2017-09-30 03:51:09 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-09-30 03:51:09 +0000 |
commit | fecd5406d7d192f812ac84bf8093f1c6688eea18 (patch) | |
tree | 14b25b11fc79e608d545dd6fc37925f261adc6da /api/resources/v2/containers.py | |
parent | 2a02457c7b4d43e6a3d9d513023bc312a0a96ba9 (diff) | |
parent | da0163b7b7aaf3ede4e757a0b7d94a5ea99b1083 (diff) |
Merge "Remove checkno.png and checkyes.png due to license issue"
Diffstat (limited to 'api/resources/v2/containers.py')
-rw-r--r-- | api/resources/v2/containers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/resources/v2/containers.py b/api/resources/v2/containers.py index ee1903901..f71e607e7 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 |