Skip to content

Commit

Permalink
Update ssl certificate for nutanix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaohuijuan committed Nov 27, 2024
1 parent 4044b0e commit d7575d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions os_tests/libs/resources_nutanix.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get(self, url):
def post(self, url, data):
logging.info("Making api post call to %s" % url)
try:
self.r = self.s.post(url, json=data, headers=self.headers)
self.r = self.s.post(url, json=data, headers=self.headers, verify="/etc/pki/ca-trust/source/anchors/nutanix_csr_selfsigned_111.csr")
except requests.exceptions.RequestException:
logging.error("Failed to connect to Prism")
# convert response to json
Expand All @@ -58,7 +58,7 @@ def post(self, url, data):
def put(self, url, data):
logging.info("Making api put call to %s" % url)
try:
self.r = self.s.put(url, json=data, headers=self.headers)
self.r = self.s.put(url, json=data, headers=self.headers, verify="/etc/pki/ca-trust/source/anchors/nutanix_csr_selfsigned_111.csr")
except requests.exceptions.RequestException:
logging.error("Failed to connect to Prism")
# convert response to json
Expand All @@ -67,7 +67,7 @@ def put(self, url, data):
def delete(self, url):
logging.info("Making api delete call to %s" % url)
try:
self.r = self.s.delete(url, headers=self.headers)
self.r = self.s.delete(url, headers=self.headers, verify="/etc/pki/ca-trust/source/anchors/nutanix_csr_selfsigned_111.csr")
except requests.exceptions.RequestException:
logging.error("Failed to connect to Prism")
# convert response to json
Expand Down

0 comments on commit d7575d2

Please sign in to comment.