From 407f04a49875b0e4a165454455aca9f69b9efad8 Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Thu, 2 Jan 2025 13:04:29 -0500 Subject: [PATCH] Merge pull request #272 from nasark/delegate_ems_refresh_class_method Delegate refresh_ems class method to parent container manager (cherry picked from commit 962ed04eb3ea02dc42b2ee196bd220a1d590b560) --- app/models/manageiq/providers/openshift/infra_manager.rb | 4 ++++ config/settings.yml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/app/models/manageiq/providers/openshift/infra_manager.rb b/app/models/manageiq/providers/openshift/infra_manager.rb index 3e98cb2..f063770 100644 --- a/app/models/manageiq/providers/openshift/infra_manager.rb +++ b/app/models/manageiq/providers/openshift/infra_manager.rb @@ -12,6 +12,10 @@ class ManageIQ::Providers::Openshift::InfraManager < ManageIQ::Providers::Kubevi supports :catalog supports :provisioning + class << self + delegate :refresh_ems, :to => ManageIQ::Providers::Openshift::ContainerManager + end + def self.ems_type @ems_type ||= "openshift_infra".freeze end diff --git a/config/settings.yml b/config/settings.yml index 01ba06e..545e5be 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -21,6 +21,8 @@ :saver_strategy: batch :get_container_images: true :store_unused_images: true + :openshift_infra: + :refresh_interval: 0 :workers: :worker_base: :event_catcher: