diff options
Diffstat (limited to 'app/models/clusters/integrations/prometheus.rb')
-rw-r--r-- | app/models/clusters/integrations/prometheus.rb | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/app/models/clusters/integrations/prometheus.rb b/app/models/clusters/integrations/prometheus.rb index 0d6177beae7..899529ff49f 100644 --- a/app/models/clusters/integrations/prometheus.rb +++ b/app/models/clusters/integrations/prometheus.rb @@ -55,23 +55,13 @@ module Clusters private def activate_project_integrations - if Feature.enabled?(:rename_integrations_workers) - ::Clusters::Applications::ActivateIntegrationWorker - .perform_async(cluster_id, ::Integrations::Prometheus.to_param) - else - ::Clusters::Applications::ActivateServiceWorker - .perform_async(cluster_id, ::Integrations::Prometheus.to_param) - end + ::Clusters::Applications::ActivateIntegrationWorker + .perform_async(cluster_id, ::Integrations::Prometheus.to_param) end def deactivate_project_integrations - if Feature.enabled?(:rename_integrations_workers) - ::Clusters::Applications::DeactivateIntegrationWorker - .perform_async(cluster_id, ::Integrations::Prometheus.to_param) - else - ::Clusters::Applications::DeactivateServiceWorker - .perform_async(cluster_id, ::Integrations::Prometheus.to_param) - end + ::Clusters::Applications::DeactivateIntegrationWorker + .perform_async(cluster_id, ::Integrations::Prometheus.to_param) end end end |