fix some warning of undefined name.

This commit is contained in:
soarpenguin 2015-10-09 11:19:24 +08:00
parent 59d655c543
commit 5efa4d29e3
5 changed files with 13 additions and 8 deletions

View file

@ -47,9 +47,9 @@ class InventoryDirectoryParser(InventoryAggregateParser):
if filename in ("host_vars", "group_vars", "vars_plugins"):
continue
fullpath = os.path.join(directory, filename)
new_names.append(fullpath)
filtered_names.append(fullpath)
super(InventoryDirectoryParser, self).__init__(new_names)
super(InventoryDirectoryParser, self).__init__(filtered_names)
def parse(self):
return super(InventoryDirectoryParser, self).parse()

View file

@ -47,9 +47,9 @@ class InventoryIniParser(InventoryAggregateParser):
if filename in ("host_vars", "group_vars", "vars_plugins"):
continue
fullpath = os.path.join(directory, filename)
new_names.append(fullpath)
filtered_names.append(fullpath)
super(InventoryDirectoryParser, self).__init__(new_names)
super(InventoryDirectoryParser, self).__init__(filtered_names)
def parse(self):
return super(InventoryDirectoryParser, self).parse()