On 16 May 2012, at 4:02, Koper, Dies wrote:
Hi Dies,
Then I vote for updating the client and driver, because without this
patch the GET /api/drivers?format=xml returns:
NoMethodError - undefined method `each' for
"https://api.oviss.jp.fujitsu.com/ovissapi/endpoint":String:
/Users/mfojtik/code/deltacloud/server/lib/deltacloud/helpers/deltacloud_helper.rb:188:in
`block in driver_provider'
/Users/mfojtik/code/deltacloud/server/lib/deltacloud/helpers/deltacloud_helper.rb:187:in
`each'
/Users/mfojtik/code/deltacloud/server/lib/deltacloud/helpers/deltacloud_helper.rb:187:in
`driver_provider'
/Users/mfojtik/code/deltacloud/server/lib/deltacloud/../../views/drivers/index.xml.haml:6:in
`block in evaluate_source'
/Users/mfojtik/code/deltacloud/server/lib/deltacloud/../../views/drivers/index.xml.haml:2:in
`each'
/Users/mfojtik/code/deltacloud/server/lib/deltacloud/../../views/drivers/index.xml.haml:2:in
`evaluate_source'
I'll send another patch that will update the driver.
-- michal
NACK
This change breaks authentication.
I see 'default' in other yaml files so I suppose it should be there.
We have the following in several places in fgcp_client.rb and
fgcp_driver.rb.
They probably have to be updated at the same time.
endpoint =
Deltacloud::Drivers::driver_config[:fgcp][:entrypoints][country]
unless
endpoint
Regards,
Dies Koper
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Wednesday, 16 May 2012 1:16 AM
To: [email protected]
Subject: [PATCH core 26/26] FGCP: Fixed configuration of providers
From: Michal Fojtik <[email protected]>
Signed-off-by: Michal fojtik <[email protected]>
---
server/config/drivers/fgcp.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/server/config/drivers/fgcp.yaml
b/server/config/drivers/fgcp.yaml
index 8c24f66..838b710 100644
--- a/server/config/drivers/fgcp.yaml
+++ b/server/config/drivers/fgcp.yaml
@@ -4,6 +4,7 @@
:username: Username
:password: Secret Key Password of User Certificate
:entrypoints:
+ default:
jp: https://api.oviss.jp.fujitsu.com/ovissapi/endpoint
au: https://api.globalcloud.fujitsu.com.au/ovissapi/endpoint
sg: https://api.globalcloud.sg.fujitsu.com/ovissapi/endpoint
--
1.7.10.1