deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core] Client: Send API_PROVIDER when changing driver
Date Thu, 27 Sep 2012 10:45:05 GMT
From: Michal Fojtik <mfojtik@redhat.com>

Because OpenStack driver now require authentication
for discover_entrypoint, we need to send API_PROVIDER string
together with new credenials.

This patch should fix the problem.

Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 client/lib/deltacloud.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/client/lib/deltacloud.rb b/client/lib/deltacloud.rb
index 7caae95..c3efcde 100644
--- a/client/lib/deltacloud.rb
+++ b/client/lib/deltacloud.rb
@@ -330,8 +330,9 @@ module DeltaCloud
 
     def use_driver(driver, opts={})
       if driver
-        @api_driver = driver 
+        @api_driver = driver
         @driver_name = driver
+        @api_provider = opts[:provider] if opts[:provider]
         @features, @entry_points = {}, {}
         discover_entry_points
       end
-- 
1.7.12


Mime
View raw message