aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorrexlee8776 <limingjiang@huawei.com>2018-01-27 06:15:51 +0000
committerRex Lee <limingjiang@huawei.com>2018-03-01 02:21:44 +0000
commit53737485791aef59d6178170989b54fc7139437a (patch)
treeaa328e7539d8a8601d695be6925d725aedbaae56 /api
parent9e2fafb8b86356d7c6719e593c0b086e065706c9 (diff)
Bugfix: yardstick env grafana fails when access the server
current timeout is 10 seconds, it would fail if grafana server start slow in some cases. JIRA: YARDSTICK-972 Change-Id: I783206fdd1352e94ba7e498283f70b5a6834b6fa Signed-off-by: rexlee8776 <limingjiang@huawei.com>
Diffstat (limited to 'api')
-rw-r--r--api/resources/v1/env.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/resources/v1/env.py b/api/resources/v1/env.py
index 32a8c730b..75c981a96 100644
--- a/api/resources/v1/env.py
+++ b/api/resources/v1/env.py
@@ -119,7 +119,7 @@ class V1Env(ApiResource):
"isDefault": True,
}
try:
- HttpClient().post(url, data, timeout=10)
+ HttpClient().post(url, data, timeout=60)
except Exception:
LOG.exception('Create datasources failed')
raise