Skip to content

Commit

Permalink
vmware_rest_client: Drop try/except
Browse files Browse the repository at this point in the history
  • Loading branch information
mariolenz committed Jul 9, 2024
1 parent 94df633 commit 80a0316
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions plugins/module_utils/vmware_rest_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,9 @@
HAS_REQUESTS = False

PYVMOMI_IMP_ERR = None
try:
from pyVim import connect # noqa: F401, pylint: disable=unused-import
from pyVmomi import vim # noqa: F401, pylint: disable=unused-import
HAS_PYVMOMI = True
except ImportError:
PYVMOMI_IMP_ERR = traceback.format_exc()
HAS_PYVMOMI = False
from pyVim import connect # noqa: F401, pylint: disable=unused-import
from pyVmomi import vim # noqa: F401, pylint: disable=unused-import
HAS_PYVMOMI = True

VSPHERE_IMP_ERR = None
try:
Expand Down

0 comments on commit 80a0316

Please sign in to comment.