Skip to content

Commit

Permalink
Merge pull request #3927 from xiaodwan/fix_connection_issue
Browse files Browse the repository at this point in the history
pyvmomi: fix connection issue in latest pyvmomi
  • Loading branch information
dzhengfy authored Aug 5, 2024
2 parents 376fc94 + 0ff5f94 commit a734c1b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions virttest/utils_pyvmomi.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import logging
from functools import wraps

from pyVim.connect import Disconnect, SmartConnect, SmartConnectNoSSL
from pyVim.connect import Disconnect, SmartConnect
from pyVim.task import WaitForTask
from pyVmomi import vim

Expand Down Expand Up @@ -241,9 +241,8 @@ def connect(self):
kwargs = self.kwargs

if self.insecure:
self.service_instance = SmartConnectNoSSL(**kwargs)
else:
self.service_instance = SmartConnect(**kwargs)
kwargs["disableSslCertValidation"] = True
self.service_instance = SmartConnect(**kwargs)

if self.service_instance:
LOG.debug(
Expand Down

0 comments on commit a734c1b

Please sign in to comment.