Skip to content

Commit 3f70263

Browse files
committed
Add after_update_endpoints to restart RefreshWorker
1 parent 907308b commit 3f70263

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/models/manageiq/providers/kubernetes/container_manager.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ class ManageIQ::Providers::Kubernetes::ContainerManager < ManageIQ::Providers::C
1818

1919
include ManageIQ::Providers::Kubernetes::ContainerManager::Options
2020

21-
before_save :stop_event_monitor_queue_on_change, :stop_refresh_worker_queue_on_change
2221
before_destroy :stop_event_monitor, :stop_refresh_worker
2322

2423
supports :create
@@ -981,6 +980,11 @@ def after_update_authentication
981980
stop_refresh_worker_queue_on_credential_change
982981
end
983982

983+
def after_update_endpoints
984+
super
985+
stop_refresh_worker_queue_on_change
986+
end
987+
984988
def ensure_authentications_record
985989
return if authentications.present?
986990
update_authentication(:default => {:userid => "_", :save => false})

0 commit comments

Comments
 (0)