Commit 5a128ca2 by James Cammarata

Adding extra member to mock inventory for unittests

parent ac8950fd
...@@ -24,6 +24,8 @@ class FakeInventory(object): ...@@ -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]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment