Skip to content

Commit

Permalink
fix(api-bc): lower case cluster id for term comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
hdinia committed Jan 25, 2024
1 parent 59a6107 commit 3190cf1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def apply_binding_constraint(
# Cluster IDs are stored in lower case in the binding constraints file.
area, cluster_id = link_or_cluster.split(".")
thermal_ids = {thermal.id.lower() for thermal in study_data.config.areas[area].thermals}
if area not in study_data.config.areas or cluster_id not in thermal_ids:
if area not in study_data.config.areas or cluster_id.lower() not in thermal_ids:
return CommandOutput(
status=False,
message=f"Cluster '{link_or_cluster}' does not exist in binding constraint '{bd_id}'",
Expand Down

0 comments on commit 3190cf1

Please sign in to comment.