From 0d2e852ed43cb5ab3302861acd69fc23db4d0602 Mon Sep 17 00:00:00 2001 From: Bastian Schmidt Date: Mon, 13 Jan 2025 10:55:44 +0100 Subject: [PATCH] Remove deprecated behavior of missing_hosts API Resource Quota utilization is stored in DB and shall not be re-computed when triggering the missing_hosts API endpoint. --- .../foreman_resource_quota/api/v2/resource_quotas_controller.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/controllers/foreman_resource_quota/api/v2/resource_quotas_controller.rb b/app/controllers/foreman_resource_quota/api/v2/resource_quotas_controller.rb index cb21e08..cf2c28f 100644 --- a/app/controllers/foreman_resource_quota/api/v2/resource_quotas_controller.rb +++ b/app/controllers/foreman_resource_quota/api/v2/resource_quotas_controller.rb @@ -46,7 +46,6 @@ def utilization N_('Show resources could not be determined when calculating utilization') param :id, :identifier, required: true def missing_hosts - @resource_quota.determine_utilization process_response @resource_quota end