Skip to content

Commit

Permalink
Merge pull request #895 from nasark/delegate_ems_refresh_class_method
Browse files Browse the repository at this point in the history
Delegate refresh_ems class method to parent cloud manager

(cherry picked from commit bae45e0)
  • Loading branch information
agrare authored and Fryguy committed Jan 16, 2025
1 parent c0dafa9 commit 56c5d06
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/manageiq/providers/openstack/network_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ class ManageIQ::Providers::Openstack::NetworkManager < ManageIQ::Providers::Netw
:to => :parent_manager,
:allow_nil => true

class << self
delegate :refresh_ems, :to => ManageIQ::Providers::Openstack::CloudManager
end

def self.hostname_required?
false
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ class ManageIQ::Providers::Openstack::StorageManager::CinderManager < ManageIQ::
virtual_delegate :cloud_tenants, :to => :parent_manager, :allow_nil => true
virtual_delegate :volume_availability_zones, :to => :parent_manager, :allow_nil => true

class << self
delegate :refresh_ems, :to => ManageIQ::Providers::Openstack::CloudManager
end

def self.default_blacklisted_event_names
%w(
scheduler.run_instance.start
Expand Down
2 changes: 2 additions & 0 deletions config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
:parallel_thread_limit: 0
:openstack_network:
:is_admin: false
:refresh_interval: 0
:openstack_infra:
:is_admin: false
:cinder:
:is_admin: false
:refresh_interval: 0
:ems:
:ems_openstack:
:excon:
Expand Down

0 comments on commit 56c5d06

Please sign in to comment.