Merge pull request #11577 from srvg/yaml_file_extensions

Use YAML_FILENAME_EXTENSIONS for vars files.
This commit is contained in:
Brian Coca 2015-07-13 18:29:26 -04:00
commit e0632cb9a4

View file

@ -315,7 +315,7 @@ class VariableManager:
file_name, ext = os.path.splitext(path)
data = None
if not ext:
for ext in ('', '.yml', '.yaml'):
for ext in C.YAML_FILENAME_EXTENSIONS:
new_path = path + ext
if loader.path_exists(new_path):
data = loader.load_from_file(new_path)