1
0
Fork 0
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:
James Cammarata 2014-08-11 19:29:55 -05:00
parent ac8950fd36
commit 5a128ca286

View file

@ -24,6 +24,8 @@ class FakeInventory(object):
self.hosts = {}
def basedir(self):
return "."
def src(self):
return "fakeinventory"
def get_variables(self, host, vault_password=None):
if host in self.hosts:
return self.hosts[host]