File tree Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 1
1
Unreleased
2
2
----------
3
- -
3
+ ** Bugfixes**
4
+ - SSL warnings no longer repeatedly raised when ` verify_ssl=False ` but ` CAS_CLIENT_SSL_CA_LIST ` is specified.
5
+
6
+ ** Improvements**
7
+ - All ` delete_*() ` service methods return ` None ` instead of empty string.
4
8
5
9
v1.5.7 (2021-05-04)
6
10
-------------------
Original file line number Diff line number Diff line change @@ -320,7 +320,12 @@ def delete_item(cls, item):
320
320
item = item ['id' ]
321
321
322
322
if cls .is_uuid (item ):
323
- return cls .delete (path + '/{id}' .format (id = item ))
323
+ response = cls .delete (path + '/{id}' .format (id = item ))
324
+ # Response generally seems to be an empty string. If so, just return None
325
+ # BUT, if the service provides an actual response, return it.
326
+ if response :
327
+ return response
328
+ return
324
329
raise ValueError ("Unrecognized id '%s'" % item )
325
330
326
331
# Pull object name from path if unspecified (many paths end in
Original file line number Diff line number Diff line change @@ -303,11 +303,11 @@ def is_ipaddress(hst):
303
303
304
304
self .mount ('https://' , adapter )
305
305
306
- else :
307
- # Every request will generate an InsecureRequestWarning
308
- from urllib3 . exceptions import InsecureRequestWarning
309
-
310
- warnings .simplefilter ('default' , InsecureRequestWarning )
306
+ # If we're skipping SSL verification, urllib3 will raise InsecureRequestWarnings on
307
+ # every request. Insert a warning filter so these warnings only appear on the first request.
308
+ if not verify_ssl :
309
+ from urllib3 . exceptions import InsecureRequestWarning
310
+ warnings .simplefilter ('default' , InsecureRequestWarning )
311
311
312
312
self .filters = DEFAULT_FILTERS
313
313
You can’t perform that action at this time.
0 commit comments