Skip to content

Commit 4aab0ae

Browse files
committed
config: Find YAML files recursively
Previously only top-level files were found in a given directory. Fixes: #2859 Signed-off-by: Paweł Wieczorek <[email protected]>
1 parent 6ad79ac commit 4aab0ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernelci/config/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def iterate_yaml_files(config_path: str):
2424
if config_path.endswith('.yaml'):
2525
yaml_files = [config_path]
2626
else:
27-
yaml_files = glob.glob(os.path.join(config_path, "*.yaml"))
27+
yaml_files = glob.glob(os.path.join(config_path, "**", "*.yaml"), recursive=True)
2828
for yaml_path in yaml_files:
2929
with open(yaml_path, encoding='utf8') as yaml_file:
3030
data = yaml.safe_load(yaml_file)

0 commit comments

Comments
 (0)