FIX: Don't fail if s3_install_cors_rule is off (#14865)

Regressed in #14802
This commit is contained in:
Jarek Radosz 2021-11-09 23:00:30 +01:00 committed by GitHub
parent 5998e69b9c
commit 25ef395af8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,6 +177,11 @@ task 's3:ensure_cors_rules' => :environment do
puts "Installing CORS rules..."
result = S3CorsRulesets.sync(use_db_s3_config: use_db_s3_config)
if !result
puts "skipping"
return
end
puts "Assets rules status: #{result[:assets_rules_status]}."
puts "Backup rules status: #{result[:backup_rules_status]}."
puts "Direct upload rules status: #{result[:direct_upload_rules_status]}."