Skip to content

Commit

Permalink
Fix for disabling the web_services worker
Browse files Browse the repository at this point in the history
Disabling the web_services role fails to terminate the worker
due to 'pop' no longer being defined for associations

https://bugzilla.redhat.com/show_bug.cgi?id=1286811
  • Loading branch information
agrare committed Jan 11, 2016
1 parent e4bc5c7 commit 4547a4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/mixins/miq_web_server_worker_mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def self.sync_workers
result[:adds] << w.pid
end
elsif desired < current
workers = workers.to_a
(current - desired).times do
w = workers.pop
port = w.port
Expand Down

0 comments on commit 4547a4c

Please sign in to comment.