Skip to content

Commit

Permalink
fix: add extra checks for insecure_http_calls_in_python
Browse files Browse the repository at this point in the history
  • Loading branch information
William Astorga committed Dec 12, 2022
1 parent 0825546 commit 5af3922
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Splunk-TA-cisco-dnacenter/bin/cisco_dnac_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ def authentication_api(self, username, password):
"""
temp_url = "/dna/system/api/v1/auth/token"
self._endpoint_url = urllib.parse.urljoin(self._base_url, temp_url)
assert self._endpoint_url.startswith("https"), "URL must be HTTPS"

# API request
response = requests.post(
Expand Down

0 comments on commit 5af3922

Please sign in to comment.