From 739e7df4a9c8db909d6f0bb7ccabb3f5cc506061 Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Tue, 12 Nov 2024 12:03:02 -0500 Subject: [PATCH] Merge pull request #925 from nasark/delegate_ems_refresh_class_method Delegate refresh_ems class method to parent cloud manager (cherry picked from commit 28af5dccfc01795c230dea5af53295001e93025a) --- app/models/manageiq/providers/vmware/network_manager.rb | 4 ++++ config/settings.yml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/app/models/manageiq/providers/vmware/network_manager.rb b/app/models/manageiq/providers/vmware/network_manager.rb index 2578fd199..92c7a61f3 100644 --- a/app/models/manageiq/providers/vmware/network_manager.rb +++ b/app/models/manageiq/providers/vmware/network_manager.rb @@ -20,6 +20,10 @@ class ManageIQ::Providers::Vmware::NetworkManager < ManageIQ::Providers::Network :to => :parent_manager, :allow_nil => true + class << self + delegate :refresh_ems, :to => ManageIQ::Providers::Vmware::CloudManager + end + def self.ems_type @ems_type ||= "vmware_cloud_network".freeze end diff --git a/config/settings.yml b/config/settings.yml index bf7c939d6..0f50e3b5e 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -21,6 +21,8 @@ :saver_strategy: batch :vmware_cloud: :get_public_images: false + :vmware_cloud_network: + :refresh_interval: 0 :vmwarews: :refresh_interval: 24.hours :update_poll_interval: 1.second