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 -1
View File
@@ -5,7 +5,7 @@ class VMwareImporterConfig(PluginConfig):
name = "netbox_vmware_importer"
verbose_name = "Virtualization Importer"
description = "Synchronize VMware vSphere and Proxmox VE virtual machines into NetBox."
version = "0.2.2"
version = "0.2.3"
author = "Internal NetBox Team"
base_url = "vmware-importer"
min_version = "4.4.0"
+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)