Skip to content

Commit 4dc279f

Browse files
Jeny Sadadiamgalka
authored andcommitted
kernelci/config: fix YAML configuration load failure
Fix "NameError: name 'v' is not defined" from `load_yaml` function when trying to load YAML configurations from a file. Fixes: 4f9c0db ("kernelci.config: add _iterate_yaml_files() to simplify code") Signed-off-by: Jeny Sadadia <[email protected]>
1 parent 9940229 commit 4dc279f

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
@@ -74,7 +74,7 @@ def load_yaml(config_path, validate_entries=None):
7474
elif hasattr(config_value, 'extend'):
7575
config_value.extend(value)
7676
else:
77-
config[k] = v
77+
config[name] = value
7878
return config
7979

8080

0 commit comments

Comments
 (0)