Skip to content

Commit e4374e3

Browse files
committed
Use the new after_update_endpoints callback for RefreshWorker
Restart the RefreshWorker after endpoints are updated
1 parent 84e6290 commit e4374e3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/models/manageiq/providers/vmware/infra_manager.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ class Vmware::InfraManager < InfraManager
3131
include VimConnectMixin
3232
include CisConnectMixin
3333

34-
before_save :stop_event_monitor_queue_on_change, :stop_refresh_worker_queue_on_change
3534
before_destroy :stop_event_monitor, :stop_refresh_worker
3635

3736
supports :catalog
@@ -350,6 +349,11 @@ def after_update_authentication
350349
stop_refresh_worker_queue_on_credential_change
351350
end
352351

352+
def after_update_endpoints
353+
super
354+
stop_refresh_worker_queue_on_change
355+
end
356+
353357
def self.event_monitor_class
354358
self::EventCatcher
355359
end

0 commit comments

Comments
 (0)