File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 2
2
import json
3
3
import re
4
4
import time
5
+ from warnings import warn
5
6
6
7
import requests
7
8
from requests_toolbelt .multipart .encoder import MultipartEncoder
@@ -112,7 +113,14 @@ def list_whitelisted_cves(self):
112
113
113
114
**Success Return Value**
114
115
A JSON object containing all the whitelisted CVEs.
116
+
117
+ **Deprecated**
118
+ This method has been deprecated since the API has changed. Use the
119
+ list_vulnerability_exception_bundles and get_vulnerability_exception_bundle methods.
115
120
'''
121
+ warn ("list_whitelisted_cves has been deprecated and doesn't work properly, please use the "
122
+ "list_vulnerability_exception_bundles and get_vulnerability_exception_bundle methods" ,
123
+ DeprecationWarning , 3 )
116
124
url = self .url + "/api/scanning/v1/whitelists/global?bundle=default"
117
125
res = requests .get (url , headers = self .hdrs , verify = self .ssl_verify )
118
126
if not self ._checkResponse (res ):
You can’t perform that action at this time.
0 commit comments