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
  • Loading branch information
jrafanie committed Nov 16, 2023
1 parent f209621 commit 287d5c9
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
Expand Up @@ -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 = 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]}
Expand Down

0 comments on commit 287d5c9

Please sign in to comment.