From 6dded5eb8b20bbf9e583dc054a7889e417ecdbc9 Mon Sep 17 00:00:00 2001 From: Alina Buzachis Date: Fri, 9 Apr 2021 11:12:00 +0200 Subject: [PATCH] * Fix linting Signed-off-by: Alina Buzachis --- plugins/module_utils/hashes.py | 2 +- tests/unit/module_utils/test_hashes.py | 4 ++-- tests/unit/module_utils/test_marshal.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/module_utils/hashes.py b/plugins/module_utils/hashes.py index 87d9f09b8c..ad2ac0b9ff 100644 --- a/plugins/module_utils/hashes.py +++ b/plugins/module_utils/hashes.py @@ -50,4 +50,4 @@ def marshal(data, keys): def encode(resource): - return hashlib.sha256(resource).hexdigest()[:10].translate(maketrans("013ae", "ghkmt")) \ No newline at end of file + return hashlib.sha256(resource).hexdigest()[:10].translate(maketrans("013ae", "ghkmt")) diff --git a/tests/unit/module_utils/test_hashes.py b/tests/unit/module_utils/test_hashes.py index 5ca0bd82de..7014eaab57 100644 --- a/tests/unit/module_utils/test_hashes.py +++ b/tests/unit/module_utils/test_hashes.py @@ -4,7 +4,7 @@ from __future__ import (absolute_import, division, print_function) __metaclass__ = type -from ansible_collections.community.kubernetes.plugins.module_utils.hashes import generate_hash +from ansible_collections.kubernetes.core.plugins.module_utils.hashes import generate_hash tests = [ dict( @@ -68,4 +68,4 @@ def test_hashes(): for test in tests: - assert(generate_hash(test['resource']) == test['expected']) \ No newline at end of file + assert(generate_hash(test['resource']) == test['expected']) diff --git a/tests/unit/module_utils/test_marshal.py b/tests/unit/module_utils/test_marshal.py index 36f65fa295..26e5a525e2 100644 --- a/tests/unit/module_utils/test_marshal.py +++ b/tests/unit/module_utils/test_marshal.py @@ -4,7 +4,7 @@ from __future__ import (absolute_import, division, print_function) __metaclass__ = type -from ansible_collections.community.kubernetes.plugins.module_utils.hashes import marshal, sorted_dict +from ansible_collections.kubernetes.core.plugins.module_utils.hashes import marshal, sorted_dict tests = [ dict( @@ -75,4 +75,4 @@ def test_marshal(): for test in tests: - assert(marshal(sorted_dict(test['resource']), sorted(list(test['resource'].keys()))) == test['expected']) \ No newline at end of file + assert(marshal(sorted_dict(test['resource']), sorted(list(test['resource'].keys()))) == test['expected'])