From 7523048ea9d9f023796fc5e098f88fc28a311ce1 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Mon, 13 Jan 2025 15:33:32 -0600 Subject: [PATCH] Fix is_project_allowed param (#121) --- blazar/plugins/oshosts/host_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blazar/plugins/oshosts/host_plugin.py b/blazar/plugins/oshosts/host_plugin.py index 7418ec5a..e1281689 100644 --- a/blazar/plugins/oshosts/host_plugin.py +++ b/blazar/plugins/oshosts/host_plugin.py @@ -717,7 +717,7 @@ def _matching_hosts(self, hypervisor_properties, resource_properties, else: hosts = db_api.reservable_host_get_all_by_queries(filter_array) for host in hosts: - if not self.is_project_allowed(project_id, resource_properties): + if not self.is_project_allowed(project_id, self.get_computehost(host["id"])): continue if not db_api.host_allocation_get_all_by_values( compute_host_id=host['id']):