returns to the state before 2.4 made it a requirement
fixes #30855
(cherry picked from commit 82de2e1865f5007d3d1a6b923666256028116167)
... | ... |
@@ -51,6 +51,7 @@ Ansible Changes By Release |
51 | 51 |
* it is import_playbook .. not import_plays .. docs now reflect this |
52 | 52 |
* fixed typo and missed include/import conversion in import_tasks docs |
53 | 53 |
* updated porting docs with note about inventory_dir |
54 |
+* removed extension requirement for yaml inventory plugin to restore previous behaviour |
|
54 | 55 |
|
55 | 56 |
<sdfasdfsadfsdflkjsdfklj3oiqrua id="2.4"></a> |
56 | 57 |
|
... | ... |
@@ -74,7 +74,7 @@ class InventoryModule(BaseFileInventoryPlugin): |
74 | 74 |
valid = False |
75 | 75 |
if super(InventoryModule, self).verify_file(path): |
76 | 76 |
file_name, ext = os.path.splitext(path) |
77 |
- if ext and ext in C.YAML_FILENAME_EXTENSIONS: |
|
77 |
+ if not ext or ext in C.YAML_FILENAME_EXTENSIONS: |
|
78 | 78 |
valid = True |
79 | 79 |
return valid |
80 | 80 |
|