From 10d5e497b8d20d4d0005976a64b8a087273763dd Mon Sep 17 00:00:00 2001 From: Laurent Vallar Date: Tue, 19 Dec 2017 09:51:34 +0100 Subject: [PATCH] add france (eu-west-3) new region, fix #424 Signed-off-by: Laurent Vallar --- lib/fog/aws.rb | 2 +- lib/fog/aws/requests/compute/describe_availability_zones.rb | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/fog/aws.rb b/lib/fog/aws.rb index 8613996d1..a702e74cd 100644 --- a/lib/fog/aws.rb +++ b/lib/fog/aws.rb @@ -229,7 +229,7 @@ module Fog end def self.regions - @regions ||= ['ap-northeast-1', 'ap-northeast-2', 'ap-southeast-1', 'ap-southeast-2', 'eu-central-1', 'ca-central-1', 'eu-west-1', 'eu-west-2', 'us-east-1', 'us-east-2', 'us-west-1', 'us-west-2', 'sa-east-1', 'cn-north-1', 'us-gov-west-1', 'ap-south-1'] + @regions ||= ['ap-northeast-1', 'ap-northeast-2', 'ap-southeast-1', 'ap-southeast-2', 'eu-central-1', 'ca-central-1', 'eu-west-1', 'eu-west-2', 'eu-west-3', 'us-east-1', 'us-east-2', 'us-west-1', 'us-west-2', 'sa-east-1', 'cn-north-1', 'us-gov-west-1', 'ap-south-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 3e65c6bb4..519295506 100644 --- a/lib/fog/aws/requests/compute/describe_availability_zones.rb +++ b/lib/fog/aws/requests/compute/describe_availability_zones.rb @@ -70,6 +70,9 @@ module Fog {"messageSet" => [], "regionName" => "eu-west-2", "zoneName" => "eu-west-2a", "zoneState" => "available"}, {"messageSet" => [], "regionName" => "eu-west-2", "zoneName" => "eu-west-2b", "zoneState" => "available"}, + {"messageSet" => [], "regionName" => "eu-west-3", "zoneName" => "eu-west-3a", "zoneState" => "available"}, + {"messageSet" => [], "regionName" => "eu-west-3", "zoneName" => "eu-west-3b", "zoneState" => "available"}, + {"messageSet" => [], "regionName" => "eu-central-1", "zoneName" => "eu-central-1a", "zoneState" => "available"}, {"messageSet" => [], "regionName" => "eu-central-1", "zoneName" => "eu-central-1b", "zoneState" => "available"},