Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1967 from SumOfUs/deploy-patch
Browse files Browse the repository at this point in the history
Nil guard for deployments
  • Loading branch information
yeseniamolinab committed Jun 10, 2022
2 parents 9f58b10 + eb12e68 commit 3a69824
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/lib/secrets_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ def secret_name(secret_id)
if secret_id.include? '/'
secret_id
else
puts "Prefix is ##{prefix}"
[prefix, secret_id].compact.join('/')
end
end
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/application_secrets.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require './app/lib/secrets_manager'

if Rails.env == 'production'
if Rails.env == 'production' && Settings.aws_secrets_manager_prefix.present?
omniauth_secrets = SecretsManager.get_value('omniauth')
ak_secrets = SecretsManager.get_value('prod/actionKitApi')
database_secrets = SecretsManager.get_value('champaignDB')
Expand Down

0 comments on commit 3a69824

Please sign in to comment.