diff --git a/config/foreman.migrations/20210809133823_reset_puma_min_threads.rb b/config/foreman.migrations/20210809133823_reset_puma_min_threads.rb new file mode 100644 index 00000000..be69d7f5 --- /dev/null +++ b/config/foreman.migrations/20210809133823_reset_puma_min_threads.rb @@ -0,0 +1,6 @@ +if answers['foreman'].is_a?(Hash) + if answers['foreman']['foreman_service_puma_threads_min'] == 0 || + answers['foreman']['foreman_service_puma_threads_min'] == answers['foreman']['foreman_service_puma_threads_max'] + answers['foreman'].delete('foreman_service_puma_threads_min') + end +end diff --git a/config/katello.migrations/210809133829-reset-puma-min-threads.rb b/config/katello.migrations/210809133829-reset-puma-min-threads.rb new file mode 100644 index 00000000..be69d7f5 --- /dev/null +++ b/config/katello.migrations/210809133829-reset-puma-min-threads.rb @@ -0,0 +1,6 @@ +if answers['foreman'].is_a?(Hash) + if answers['foreman']['foreman_service_puma_threads_min'] == 0 || + answers['foreman']['foreman_service_puma_threads_min'] == answers['foreman']['foreman_service_puma_threads_max'] + answers['foreman'].delete('foreman_service_puma_threads_min') + end +end