Skip to content

Commit

Permalink
Don't sent region if we have one already
Browse files Browse the repository at this point in the history
This was bad code.
  • Loading branch information
Clarke Brunsdon committed May 20, 2016
1 parent 7100b44 commit ca1d163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oops/tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ca1d163

Please sign in to comment.