Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delegate refresh_ems class method to parent cloud manager #271

Merged
merged 2 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/models/manageiq/providers/google/network_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ class ManageIQ::Providers::Google::NetworkManager < ManageIQ::Providers::Network
:to => :parent_manager,
:allow_nil => true

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

def self.ems_type
@ems_type ||= "gce_network".freeze
end
Expand Down
3 changes: 3 additions & 0 deletions config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
:inventory_collections:
:saver_strategy: default
:gce_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: default
:gke:
Expand Down