mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
fix some warning of undefined name.
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user