diff --git a/lib/fog/aws.rb b/lib/fog/aws.rb index 5412f1d19..ece2571be 100644 --- a/lib/fog/aws.rb +++ b/lib/fog/aws.rb @@ -224,7 +224,7 @@ module Fog end def self.regions - @regions ||= ['ap-northeast-1', 'ap-northeast-2', 'ap-southeast-1', 'ap-southeast-2', 'eu-central-1', 'eu-west-1', 'us-east-1', 'us-west-1', 'us-west-2', 'sa-east-1', 'cn-north-1', 'us-gov-west-1'] + @regions ||= ['ap-northeast-1', 'ap-northeast-2', 'ap-southeast-1', 'ap-southeast-2', 'eu-central-1', 'eu-west-1', 'us-east-1', 'us-west-1', 'us-west-2', 'sa-east-1', 'cn-north-1', 'us-gov-west-1', 'in-west-1'] end def self.validate_region!(region, host=nil) diff --git a/lib/fog/aws/requests/compute/describe_availability_zones.rb b/lib/fog/aws/requests/compute/describe_availability_zones.rb index dcb400ca2..6da5d74ec 100644 --- a/lib/fog/aws/requests/compute/describe_availability_zones.rb +++ b/lib/fog/aws/requests/compute/describe_availability_zones.rb @@ -74,6 +74,9 @@ module Fog {"messageSet" => [], "regionName" => "ap-southeast-2", "zoneName" => "ap-southeast-2a", "zoneState" => "available"}, {"messageSet" => [], "regionName" => "ap-southeast-2", "zoneName" => "ap-southeast-2b", "zoneState" => "available"}, + + {"messageSet" => [], "regionName" => "in-west-1", "zoneName" => "in-west-1a", "zoneState" => "available"}, + {"messageSet" => [], "regionName" => "in-west-1", "zoneName" => "in-west-1b", "zoneState" => "available"}, ] availability_zone_info = all_zones.select { |zoneinfo| zoneinfo["regionName"] == @region }