forked from Juniper/contrail-third-party
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ifmap-python-patch2.diff
20 lines (20 loc) · 1.08 KB
/
ifmap-python-patch2.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/third_party/ifmap-python-client/ifmap/client.py b/third_party/ifmap-python-client/ifmap/client.py
index c0f748c..103caa6 100644
--- a/third_party/ifmap-python-client/ifmap/client.py
+++ b/third_party/ifmap-python-client/ifmap/client.py
@@ -92,7 +92,14 @@
self.__url = url
self.__username = user
self.__password = password
- self._http = HTTPClient(*self.__url, ssl = True,
+ try:
+ self._http = HTTPClient(*self.__url, ssl = True,
+ connection_timeout = None,
+ network_timeout = None,
+ ssl_options = self.__ssl_options,
+ insecure = True)
+ except TypeError:
+ self._http = HTTPClient(*self.__url, ssl = True,
connection_timeout = None,
network_timeout = None,
ssl_options = self.__ssl_options)