mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 15:11:23 -07: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 jinja2.runtime import Undefined
|
||||||
|
|
||||||
from ansible.module_utils._text import to_bytes
|
|
||||||
from ansible.module_utils.common._collections_compat import Mapping
|
from ansible.module_utils.common._collections_compat import Mapping
|
||||||
from ansible.template import Templar
|
from ansible.template import Templar
|
||||||
|
|
||||||
|
@ -44,11 +43,6 @@ STATIC_VARS = [
|
||||||
'ungrouped',
|
'ungrouped',
|
||||||
]
|
]
|
||||||
|
|
||||||
try:
|
|
||||||
from hashlib import sha1
|
|
||||||
except ImportError:
|
|
||||||
from sha import sha as sha1
|
|
||||||
|
|
||||||
__all__ = ['HostVars', 'HostVarsVars']
|
__all__ = ['HostVars', 'HostVarsVars']
|
||||||
|
|
||||||
|
|
||||||
|
@ -62,7 +56,6 @@ class HostVars(Mapping):
|
||||||
self._loader = loader
|
self._loader = loader
|
||||||
self._variable_manager = variable_manager
|
self._variable_manager = variable_manager
|
||||||
variable_manager._hostvars = self
|
variable_manager._hostvars = self
|
||||||
self._cached_result = dict()
|
|
||||||
|
|
||||||
def set_variable_manager(self, variable_manager):
|
def set_variable_manager(self, variable_manager):
|
||||||
self._variable_manager = variable_manager
|
self._variable_manager = variable_manager
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue