Adding extra member to mock inventory for unittests

release1.7.1
James Cammarata 10 years ago
parent d6266ba72b
commit 4dcbeed7af

@ -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…
Cancel
Save