mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
rmeove ext requirement for yaml inventory plugin
returns to the state before 2.4 made it a requirement fixes #30855
This commit is contained in:
parent
c2af15ce74
commit
82de2e1865
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ class InventoryModule(BaseFileInventoryPlugin):
|
||||||
valid = False
|
valid = False
|
||||||
if super(InventoryModule, self).verify_file(path):
|
if super(InventoryModule, self).verify_file(path):
|
||||||
file_name, ext = os.path.splitext(path)
|
file_name, ext = os.path.splitext(path)
|
||||||
if ext and ext in C.YAML_FILENAME_EXTENSIONS:
|
if not ext or ext in C.YAML_FILENAME_EXTENSIONS:
|
||||||
valid = True
|
valid = True
|
||||||
return valid
|
return valid
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue