Bypass proxy environment for Proxmox API requests

This commit is contained in:
2026-07-10 11:23:34 +02:00
parent 20e6487030
commit 2a40d7952f
5 changed files with 6 additions and 2 deletions
+1
View File
@@ -242,6 +242,7 @@ class ProxmoxClient:
raise ProxmoxConnectionError("Proxmox username must include a realm, e.g. root@pam or user@pve.")
self.session = requests.Session()
self.session.trust_env = False
self.session.verify = self.endpoint.validate_ssl
if not self.endpoint.validate_ssl and InsecureRequestWarning is not None:
requests.packages.urllib3.disable_warnings(category=InsecureRequestWarning)