~ubuntu-branches/ubuntu/precise/ec2-ami-tools/precise

« back to all changes in this revision

Viewing changes to lib/ec2/amitools/migratebundle.rb

  • Committer: Bazaar Package Importer
  • Author(s): Scott Moser
  • Date: 2010-05-18 13:48:53 UTC
  • mfrom: (5.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100518134853-80q3hzjmejlirfut
Tags: 1.3.49953-0ubuntu1
New upstream release. Adds support for ap-southeast-1. LP: #582387

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
    if region.nil?
146
146
      location ||= bucket_location
147
147
      region = "us-east-1"
148
 
      region = "us-west-1" if location == "us-west-1"
149
 
      region = "eu-west-1" if location == "EU"
 
148
      region = "eu-west-1"      if location == "EU"
 
149
      region = "us-west-1"      if location == "us-west-1"
 
150
      region = "ap-southeast-1" if location == "ap-southeast-1"
150
151
      puts "Region not provided, guessing from S3 location: #{region}"
151
152
    end
152
153