Skip to content

Commit

Permalink
Fix code scanning alert no. 81: Request without certificate validation
Browse files Browse the repository at this point in the history
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
vktrrdk and github-advanced-security[bot] authored Oct 10, 2024
1 parent 3dcecec commit 4b095b6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions simple_vm_client/metadata_connector/metadata_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ def remove_metadata(self, ip: str):
timeout=(30, 30),
headers={
"X-Auth-Token": self.METADATA_SERVER_TOKEN,
},
verify=False,
}
)
response.raise_for_status()
logger.info(f"Metadata removed successfully for {ip}")
Expand Down Expand Up @@ -125,8 +124,7 @@ def is_metadata_server_available(self):
try:
response = requests.get(
health_url,
timeout=(30, 30),
verify=False,
timeout=(30, 30)
)
response.raise_for_status()
logger.info(f"Metadata Health Check --- {response.json()}")
Expand Down

0 comments on commit 4b095b6

Please sign in to comment.