mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-03 09:13:12 +00:00
Adding extra member to mock inventory for unittests
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user