Skip to content

Commit

Permalink
Fix Azure NetworkManager refresh not delegated
Browse files Browse the repository at this point in the history
All refreshes should be done via the CloudManager, instance methods are
delegated to the network_manager's parent_manager however the
class-level refresh_ems method was not being delegated causing failures
and disconnected inventory.
  • Loading branch information
agrare committed Oct 24, 2024
1 parent 2c3a909 commit 9424545
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/manageiq/providers/azure/network_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ class ManageIQ::Providers::Azure::NetworkManager < ManageIQ::Providers::NetworkM
:to => :parent_manager,
:allow_nil => true

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

def self.ems_type
@ems_type ||= "azure_network".freeze
end
Expand Down

0 comments on commit 9424545

Please sign in to comment.