Skip to content

Commit

Permalink
Permit subscription classes to be serialized in queue args
Browse files Browse the repository at this point in the history
jrafanie committed Nov 17, 2023

Unverified

No user is associated with the committer email.
1 parent f209621 commit e228bd8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/ops_controller/settings/common.rb
Original file line number Diff line number Diff line change
@@ -182,6 +182,7 @@ def pglogical_save_subscriptions
task_opts = {:action => "Save subscriptions for global region", :userid => session[:userid]}
queue_opts = {:class_name => "MiqPglogical", :method_name => "save_global_region",
:args => [subscriptions_to_save, subsciptions_to_remove]}
ActiveRecord::Base.yaml_column_permitted_classes |= [subscriptions_to_save.first.class, subsciptions_to_remove.first.class]
when "remote"
task_opts = {:action => "Configure the database to be a replication remote region",
:userid => session[:userid]}

0 comments on commit e228bd8

Please sign in to comment.