diff --git a/biscd/biscd/models/yaml_serializable.py b/biscd/biscd/models/yaml_serializable.py index 37f636a..bf75b99 100644 --- a/biscd/biscd/models/yaml_serializable.py +++ b/biscd/biscd/models/yaml_serializable.py @@ -85,7 +85,7 @@ class YamlSerializable(object): # For other keys, filter out any item that does not contain a key, # or that not match the key's value ymlsl_dicts = [ymlsl_dict for ymlsl_dict in ymlsl_dicts - if ymlsl_dict.get(key, None) == value] + if next(iter(ymlsl_dict.values())).get(key, None) == value] # After each iteration: if no item is left, return None if not any(ymlsl_dicts):