Skip to content

Commit a1753b6

Browse files
trying to fix all sanity errors :))
1 parent dd91aea commit a1753b6

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

plugins/module_utils/client.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
from ansible.module_utils.compat import version
1313
except ImportError:
1414
# Version comparison compatibility layer
15-
import sys
16-
17-
# Use custom version comparison for all Python versions to avoid distutils deprecation warnings
15+
# Use custom version comparison for all Python versions to avoid distutils
16+
# deprecation warnings
1817
class StrictVersion:
1918
def __init__(self, version_string):
2019
self.version = version_string

tests/unit/plugins/modules/test_user.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
arguments, errors, http, utils
1010
)
1111
from ansible_collections.sensu.sensu_go.plugins.modules import user
12+
from .common.utils import (
13+
AnsibleExitJson, AnsibleFailJson, ModuleTestCase, set_module_args,
14+
)
1215

1316
# Version comparison compatibility layer
1417

@@ -56,10 +59,6 @@ class version:
5659
StrictVersion = StrictVersion
5760

5861

59-
from .common.utils import (
60-
AnsibleExitJson, AnsibleFailJson, ModuleTestCase, set_module_args,
61-
)
62-
6362
pytestmark = pytest.mark.skipif(
6463
sys.version_info < (2, 7), reason="requires python2.7 or higher"
6564
)

0 commit comments

Comments
 (0)