mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Fix python3 test.
This commit is contained in:
parent
130139dc80
commit
30f827d92d
2 changed files with 4 additions and 2 deletions
|
@ -76,7 +76,7 @@ class HostVars(collections.Mapping):
|
|||
data = self._variable_manager.get_vars(loader=self._loader, host=host, play=self._play, include_hostvars=False)
|
||||
|
||||
# Using cache in order to avoid template call
|
||||
sha1_hash = sha1(str(data)).hexdigest()
|
||||
sha1_hash = sha1(str(data).encode('utf-8')).hexdigest()
|
||||
if sha1_hash in self._cached_result:
|
||||
result = self._cached_result[sha1_hash]
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue