Skip to content

Commit

Permalink
Try exclude disabled servers (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnGarbutt authored Aug 17, 2023
1 parent 3da671f commit 67e16b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion os_capacity/prometheus.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ def get_max_per_host(placement_client, flavor):
)
required_str = ",".join(required_traits)
# TODO(johngarbut): remove disabled!
forbidden_str = "COMPUTE_STATUS_DISABLED"
if required_str:
required_str += ","
required_str += "!COMPUTE_STATUS_DISABLED"

params = {"resources": resource_str}
if not resource_str:
Expand Down

0 comments on commit 67e16b7

Please sign in to comment.