From 82de2e1865f5007d3d1a6b923666256028116167 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 27 Sep 2017 09:53:56 -0400 Subject: [PATCH] rmeove ext requirement for yaml inventory plugin returns to the state before 2.4 made it a requirement fixes #30855 --- lib/ansible/plugins/inventory/yaml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/inventory/yaml.py b/lib/ansible/plugins/inventory/yaml.py index ae964aa1d71..062f7a235e3 100644 --- a/lib/ansible/plugins/inventory/yaml.py +++ b/lib/ansible/plugins/inventory/yaml.py @@ -74,7 +74,7 @@ class InventoryModule(BaseFileInventoryPlugin): valid = False if super(InventoryModule, self).verify_file(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 return valid