diff options
author | Ross Brattain <ross.b.brattain@intel.com> | 2017-09-21 03:44:28 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-09-21 03:44:28 +0000 |
commit | 36a2e04b468d980c98bd43768e4c88d37a8a69f1 (patch) | |
tree | 9ac2f2476328d10c05f328b544ff092266280767 /api/resources/v1 | |
parent | 173c6ad6f464c514185efc0b5a608ceb6cc118ae (diff) | |
parent | c039fecf1c533b09286b0eec89ddc13862b3d452 (diff) |
Merge "Introduced timeout to post method of HttpClient"
Diffstat (limited to 'api/resources/v1')
-rw-r--r-- | api/resources/v1/env.py | 2 |
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 |