Skip to content

Commit

Permalink
Merge pull request #484 from zhaohuijuan/dev
Browse files Browse the repository at this point in the history
Update ssl certificate for nutanix
  • Loading branch information
zhaohuijuan authored Nov 27, 2024
2 parents 4044b0e + d7575d2 commit 4de63b8
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 4de63b8

Please sign in to comment.