You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2012/10/01 10:51:23 UTC
git commit: Client: Send API_PROVIDER when changing driver
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 <mf...@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 <mf...@redhat.com>
Authored: Thu Sep 27 12:45:05 2012 +0200
Committer: Michal fojtik <mf...@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