We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3da671f commit 67e16b7Copy full SHA for 67e16b7
os_capacity/prometheus.py
@@ -59,7 +59,9 @@ def get_max_per_host(placement_client, flavor):
59
)
60
required_str = ",".join(required_traits)
61
# TODO(johngarbut): remove disabled!
62
- forbidden_str = "COMPUTE_STATUS_DISABLED"
+ if required_str:
63
+ required_str += ","
64
+ required_str += "!COMPUTE_STATUS_DISABLED"
65
66
params = {"resources": resource_str}
67
if not resource_str:
0 commit comments