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 = {}
|
||||
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]
|
||||
|
|
Loading…
Reference in a new issue