From ca1d163ad7031960be2d38227b70434834373bc6 Mon Sep 17 00:00:00 2001 From: Clarke Brunsdon Date: Fri, 20 May 2016 11:32:46 -0700 Subject: [PATCH] Don't sent region if we have one already This was bad code. --- lib/oops/tasks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oops/tasks.rb b/lib/oops/tasks.rb index 8b07877..a65660e 100644 --- a/lib/oops/tasks.rb +++ b/lib/oops/tasks.rb @@ -93,7 +93,7 @@ def create_task! file_path = args.filename file_url = s3_url file_path - ENV['AWS_REGION'] = 'us-east-1' + ENV['AWS_REGION'] ||= 'us-east-1' if !s3_object(file_path).exists? raise "Artifact \"#{file_url}\" doesn't seem to exist\nMake sure you've run `RAILS_ENV=deploy rake opsworks:build opsworks:upload` before deploying"