This is an automated email from the ASF dual-hosted git repository.

micafer pushed a commit to branch vmware_fix
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit e68658a3aac6378268e8b521e7532e59ccd5cb0c
Author: Miguel Caballer <[email protected]>
AuthorDate: Mon Mar 23 10:41:41 2026 +0100

    Add verify_ssl option
---
 libcloud/compute/drivers/vsphere.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libcloud/compute/drivers/vsphere.py 
b/libcloud/compute/drivers/vsphere.py
index c7372c2ae..185cc6db7 100644
--- a/libcloud/compute/drivers/vsphere.py
+++ b/libcloud/compute/drivers/vsphere.py
@@ -92,7 +92,7 @@ class VSphereNodeDriver(NodeDriver):
         "suspended": NodeState.SUSPENDED,
     }
 
-    def __init__(self, host, username, password, port=443, ca_cert=None):
+    def __init__(self, host, username, password, port=443, ca_cert=None, 
verify_ssl=True):
         """Initialize a connection by providing a hostname,
         username and password
         """
@@ -137,7 +137,7 @@ class VSphereNodeDriver(NodeDriver):
             if "name or service not known" in error_message:
                 raise LibcloudError("Check that the vSphere host is 
accessible", driver=self)
 
-            if "certificate verify failed" in error_message:
+            if "certificate verify failed" in error_message and not verify_ssl:
                 # bypass self signed certificates
                 try:
                     context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)

Reply via email to