Skip to content

Commit

Permalink
* Fix linting
Browse files Browse the repository at this point in the history
Signed-off-by: Alina Buzachis <[email protected]>
  • Loading branch information
alinabuzachis committed Apr 9, 2021
1 parent 7725bf7 commit 6dded5e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugins/module_utils/hashes.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ def marshal(data, keys):


def encode(resource):
return hashlib.sha256(resource).hexdigest()[:10].translate(maketrans("013ae", "ghkmt"))
return hashlib.sha256(resource).hexdigest()[:10].translate(maketrans("013ae", "ghkmt"))
4 changes: 2 additions & 2 deletions tests/unit/module_utils/test_hashes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -68,4 +68,4 @@

def test_hashes():
for test in tests:
assert(generate_hash(test['resource']) == test['expected'])
assert(generate_hash(test['resource']) == test['expected'])
4 changes: 2 additions & 2 deletions tests/unit/module_utils/test_marshal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -75,4 +75,4 @@

def test_marshal():
for test in tests:
assert(marshal(sorted_dict(test['resource']), sorted(list(test['resource'].keys()))) == test['expected'])
assert(marshal(sorted_dict(test['resource']), sorted(list(test['resource'].keys()))) == test['expected'])

0 comments on commit 6dded5e

Please sign in to comment.