diff --git a/vars_plugins/override_folder.py b/vars_plugins/override_folder.py index 92995f8..e6661fb 100644 --- a/vars_plugins/override_folder.py +++ b/vars_plugins/override_folder.py @@ -39,8 +39,8 @@ def vars_files_loading(folder, name, matched=False): except OSError: return files for f in candidates: - if os.path.basename(f) in [name, name + ".yml", name + ".yaml"] - or matched: + if (os.path.basename(f) in [name, name + ".yml", name + ".yaml"] + or matched): if os.path.isfile(f): files.append(f) elif os.path.isdir(f):