Add a way to add directories to just one type of loader

This commit is contained in:
Daniel Hokka Zakrisson 2012-11-18 18:40:56 +01:00
commit 5dd2ec2cae
2 changed files with 10 additions and 2 deletions

View file

@ -68,7 +68,7 @@ class Inventory(object):
host_list = [ h for h in host_list if h and h.strip() ]
else:
utils.plugins.push_basedir(self.basedir())
utils.plugins.vars_loader.add_directory(self.basedir())
if type(host_list) == list:
all = Group('all')