mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
new India Region to fog-aws
This commit is contained in:
parent
b823dbf522
commit
1b26f850d3
2 changed files with 4 additions and 1 deletions
|
@ -224,7 +224,7 @@ module Fog
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.regions
|
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
|
end
|
||||||
|
|
||||||
def self.validate_region!(region, host=nil)
|
def self.validate_region!(region, host=nil)
|
||||||
|
|
|
@ -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-2a", "zoneState" => "available"},
|
||||||
{"messageSet" => [], "regionName" => "ap-southeast-2", "zoneName" => "ap-southeast-2b", "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 }
|
availability_zone_info = all_zones.select { |zoneinfo| zoneinfo["regionName"] == @region }
|
||||||
|
|
Loading…
Reference in a new issue