mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Remove unused imports and variable in hostvars.py (#51609)
This commit is contained in:
parent
b93b3dd7a7
commit
890394aeed
1 changed files with 0 additions and 7 deletions
|
@ -21,7 +21,6 @@ __metaclass__ = type
|
|||
|
||||
from jinja2.runtime import Undefined
|
||||
|
||||
from ansible.module_utils._text import to_bytes
|
||||
from ansible.module_utils.common._collections_compat import Mapping
|
||||
from ansible.template import Templar
|
||||
|
||||
|
@ -44,11 +43,6 @@ STATIC_VARS = [
|
|||
'ungrouped',
|
||||
]
|
||||
|
||||
try:
|
||||
from hashlib import sha1
|
||||
except ImportError:
|
||||
from sha import sha as sha1
|
||||
|
||||
__all__ = ['HostVars', 'HostVarsVars']
|
||||
|
||||
|
||||
|
@ -62,7 +56,6 @@ class HostVars(Mapping):
|
|||
self._loader = loader
|
||||
self._variable_manager = variable_manager
|
||||
variable_manager._hostvars = self
|
||||
self._cached_result = dict()
|
||||
|
||||
def set_variable_manager(self, variable_manager):
|
||||
self._variable_manager = variable_manager
|
||||
|
|
Loading…
Reference in a new issue