mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Adding extra member to mock inventory for unittests
This commit is contained in:
parent
ac8950fd36
commit
5a128ca286
1 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,8 @@ class FakeInventory(object):
|
||||||
self.hosts = {}
|
self.hosts = {}
|
||||||
def basedir(self):
|
def basedir(self):
|
||||||
return "."
|
return "."
|
||||||
|
def src(self):
|
||||||
|
return "fakeinventory"
|
||||||
def get_variables(self, host, vault_password=None):
|
def get_variables(self, host, vault_password=None):
|
||||||
if host in self.hosts:
|
if host in self.hosts:
|
||||||
return self.hosts[host]
|
return self.hosts[host]
|
||||||
|
|
Loading…
Add table
Reference in a new issue