You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by mf...@redhat.com on 2012/05/21 12:07:12 UTC
[PATCH core 31/51] FGCP: Fixed the driver to use :default in entrypoint configuration
From: Michal Fojtik <mf...@redhat.com>
Signed-off-by: Michal fojtik <mf...@redhat.com>
---
server/lib/deltacloud/drivers/fgcp/fgcp_client.rb | 2 +-
server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/lib/deltacloud/drivers/fgcp/fgcp_client.rb b/server/lib/deltacloud/drivers/fgcp/fgcp_client.rb
index 534979d..c544998 100644
--- a/server/lib/deltacloud/drivers/fgcp/fgcp_client.rb
+++ b/server/lib/deltacloud/drivers/fgcp/fgcp_client.rb
@@ -35,7 +35,7 @@ class FGCPClient
@locale = locale
cert.subject.to_s =~ /\b[Cc]=(\w\w)\b/
country = $1.downcase
- endpoint = Deltacloud::Drivers::driver_config[:fgcp][:entrypoints][country] unless endpoint
+ endpoint = Deltacloud::Drivers::driver_config[:fgcp][:entrypoints][:default][country] unless endpoint
raise "API endpoint not found for region #{country}" if endpoint.nil?
#proxy settings:
diff --git a/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb b/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb
index 6f8b9bd..0729ae4 100644
--- a/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb
+++ b/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb
@@ -1136,7 +1136,7 @@ eofwopxml
cert, key = convert_credentials(credentials)
cert.subject.to_s =~ /\b[Cc]=(\w\w)\b/
country = $1.downcase
- endpoint = Deltacloud::Drivers::driver_config[:fgcp][:entrypoints][country]
+ endpoint = Deltacloud::Drivers::driver_config[:fgcp][:entrypoints][:default][country]
[
Provider.new(
:id => "fgcp-#{country}",
--
1.7.10.1