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 22import json
33import re
44import time
5+ from warnings import warn
56
67import requests
78from requests_toolbelt .multipart .encoder import MultipartEncoder
@@ -112,7 +113,14 @@ def list_whitelisted_cves(self):
112113
113114 **Success Return Value**
114115 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.
115120 '''
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 )
116124 url = self .url + "/api/scanning/v1/whitelists/global?bundle=default"
117125 res = requests .get (url , headers = self .hdrs , verify = self .ssl_verify )
118126 if not self ._checkResponse (res ):
You can’t perform that action at this time.
0 commit comments