Skip to content

Commit

Permalink
Merge pull request ManageIQ#874 from nasark/delegate_ems_refresh_clas…
Browse files Browse the repository at this point in the history
…s_method

Delegate refresh_ems class method to parent cloud manager
  • Loading branch information
agrare authored Oct 30, 2024
2 parents 2f931b3 + 2dbfe95 commit 6aa6433
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/manageiq/providers/amazon/network_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ class ManageIQ::Providers::Amazon::NetworkManager < ManageIQ::Providers::Network
:to => :parent_manager,
:allow_nil => true

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

def self.ems_type
@ems_type ||= "ec2_network".freeze
end
Expand Down
4 changes: 4 additions & 0 deletions app/models/manageiq/providers/amazon/storage_manager/ebs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ class ManageIQ::Providers::Amazon::StorageManager::Ebs < ManageIQ::Providers::St
supports :cloud_volume
supports :cloud_volume_create

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

def self.ems_type
@ems_type ||= "ec2_ebs_storage".freeze
end
Expand Down
6 changes: 6 additions & 0 deletions config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@
:inventory_collections:
:saver_strategy: batch
:ec2_network:
# Disable scheduled full refresh for the network manager as this will be
# refreshed automatically by the parent cloud manager.
:refresh_interval: 0
:inventory_collections:
:saver_strategy: batch
:eks:
Expand All @@ -97,6 +100,9 @@
:inventory_collections:
:saver_strategy: batch
:ec2_ebs_storage:
# Disable scheduled full refresh for the storage manager as this will be
# refreshed automatically by the parent cloud manager.
:refresh_interval: 0
:inventory_collections:
:saver_strategy: batch
:http_proxy:
Expand Down

0 comments on commit 6aa6433

Please sign in to comment.