From f484bd52fd863af1ab55d729e9bf4182858cb6a6 Mon Sep 17 00:00:00 2001 From: Alexandru Bleotu Date: Thu, 21 Sep 2017 15:33:00 -0400 Subject: [PATCH] more pylint --- salt/states/pbm.py | 4 +--- tests/unit/utils/vmware/test_connection.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/salt/states/pbm.py b/salt/states/pbm.py index bf54f620ad..775b716f44 100644 --- a/salt/states/pbm.py +++ b/salt/states/pbm.py @@ -111,9 +111,7 @@ LOGIN_DETAILS = {} def __virtual__(): - if HAS_JSONSCHEMA: - return True - return False + return True def mod_init(low): diff --git a/tests/unit/utils/vmware/test_connection.py b/tests/unit/utils/vmware/test_connection.py index dd357d4870..d8afbb0504 100644 --- a/tests/unit/utils/vmware/test_connection.py +++ b/tests/unit/utils/vmware/test_connection.py @@ -25,7 +25,7 @@ import salt.utils.vmware from salt.ext import six try: - from pyVmomi import vim, vmodl, VmomiSupport + from pyVmomi import vim, vmodl HAS_PYVMOMI = True except ImportError: HAS_PYVMOMI = False