engines/bastion_katello/lib/bastion_katello/engine.rb in katello-3.2.1.1 vs engines/bastion_katello/lib/bastion_katello/engine.rb in katello-3.3.0.rc1

- old
+ new

@@ -8,10 +8,12 @@ config.to_prepare do consumer_cert_rpm = 'katello-ca-consumer-latest.noarch.rpm' consumer_cert_rpm = SETTINGS[:katello][:consumer_cert_rpm] if SETTINGS.key?(:katello) + db_migrated = ActiveRecord::Base.connection.table_exists?(Setting.table_name) + Bastion.register_plugin( :name => 'bastion_katello', :javascript => 'bastion_katello/bastion_katello', :stylesheet => 'bastion_katello/bastion_katello', :pages => %w( @@ -32,12 +34,13 @@ katello_tasks select_organization ), :config => { 'consumerCertRPM' => consumer_cert_rpm, + 'defaultDownloadPolicy' => !Foreman.in_rake? && db_migrated && Setting['default_download_policy'], 'remoteExecutionPresent' => ::Katello.with_remote_execution?, 'remoteExecutionByDefault' => ::Katello.with_remote_execution? && !Foreman.in_rake?('db:migrate') && - Setting['remote_execution_by_default'] + db_migrated && Setting['remote_execution_by_default'] } ) end end end