summaryrefslogtreecommitdiffstats
path: root/api/resources
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-09-21 03:44:28 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-21 03:44:28 +0000
commit36a2e04b468d980c98bd43768e4c88d37a8a69f1 (patch)
tree9ac2f2476328d10c05f328b544ff092266280767 /api/resources
parent173c6ad6f464c514185efc0b5a608ceb6cc118ae (diff)
parentc039fecf1c533b09286b0eec89ddc13862b3d452 (diff)
Merge "Introduced timeout to post method of HttpClient"
Diffstat (limited to 'api/resources')
-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 47ea91643..04cc659c7 100644
--- a/api/resources/v1/env.py
+++ b/api/resources/v1/env.py
@@ -123,7 +123,7 @@ class V1Env(ApiResource):
"isDefault": True,
}
try:
- HttpClient().post(url, data)
+ HttpClient().post(url, data, timeout=10)
except Exception:
LOG.exception('Create datasources failed')
raise