mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-09 18:04:02 -07:00
Return a copy of the host variables.
This commit is contained in:
parent
961ccdb2f4
commit
8c3206c99f
2 changed files with 10 additions and 1 deletions
|
@ -82,7 +82,7 @@ class Inventory(object):
|
|||
""" Return the variables associated with this host. """
|
||||
|
||||
if host in self._variables:
|
||||
return self._variables[host]
|
||||
return self._variables[host].copy()
|
||||
|
||||
if not self._is_script:
|
||||
return {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue