deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject git commit: Client: Send API_PROVIDER when changing driver
Date Mon, 01 Oct 2012 08:51:23 GMT
Updated Branches:
  refs/heads/master e6cdb2184 -> d5aa10ed6


Client: Send API_PROVIDER when changing driver

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>


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/d5aa10ed
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/d5aa10ed
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/d5aa10ed

Branch: refs/heads/master
Commit: d5aa10ed660f1011888d505f45362e2a7c9a6e60
Parents: e6cdb21
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Thu Sep 27 12:45:05 2012 +0200
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Mon Oct 1 10:51:54 2012 +0200

----------------------------------------------------------------------
 client/lib/deltacloud.rb |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/d5aa10ed/client/lib/deltacloud.rb
----------------------------------------------------------------------
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


Mime
View raw message