mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
fix some warning of undefined name.
This commit is contained in:
parent
59d655c543
commit
5efa4d29e3
5 changed files with 13 additions and 8 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue