mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-04 07:30:20 -07:00
Fix logic bug when loading vars for a new playbook basedir.
This commit is contained in:
parent
8a6cfa1a23
commit
d39ff55688
1 changed files with 2 additions and 2 deletions
|
@ -585,11 +585,11 @@ class Inventory(object):
|
||||||
|
|
||||||
def get_host_vars(self, host, new_pb_basedir=False):
|
def get_host_vars(self, host, new_pb_basedir=False):
|
||||||
""" Read host_vars/ files """
|
""" Read host_vars/ files """
|
||||||
return self._get_hostgroup_vars(host=host, group=None, new_pb_basedir=False)
|
return self._get_hostgroup_vars(host=host, group=None, new_pb_basedir=new_pb_basedir)
|
||||||
|
|
||||||
def get_group_vars(self, group, new_pb_basedir=False):
|
def get_group_vars(self, group, new_pb_basedir=False):
|
||||||
""" Read group_vars/ files """
|
""" Read group_vars/ files """
|
||||||
return self._get_hostgroup_vars(host=None, group=group, new_pb_basedir=False)
|
return self._get_hostgroup_vars(host=None, group=group, new_pb_basedir=new_pb_basedir)
|
||||||
|
|
||||||
def _get_hostgroup_vars(self, host=None, group=None, new_pb_basedir=False):
|
def _get_hostgroup_vars(self, host=None, group=None, new_pb_basedir=False):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue