diff --git a/chi/lease.py b/chi/lease.py index 985fa82..6d04d15 100644 --- a/chi/lease.py +++ b/chi/lease.py @@ -459,7 +459,7 @@ def _find_node_reservation(res): if res.get("resource_type") != "physical:host": return False if count is not None and not all( - int(res.get(key)) == count for key in ["min_count", "max_count"] + int(res.get(key, -1)) == count for key in ["min_count", "max_count"] ): return False rp = res.get("resource_properties")