Skip to content

Commit

Permalink
Fix is_project_allowed param
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Powers committed Jan 13, 2025
1 parent d89ab78 commit 2c1ffc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blazar/plugins/oshosts/host_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']):
Expand Down

0 comments on commit 2c1ffc4

Please sign in to comment.