deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Provaznik <jprov...@redhat.com>
Subject Re: [PATCH core] Client: Send API_PROVIDER when changing driver
Date Mon, 01 Oct 2012 08:36:25 GMT
On 09/27/2012 12:45 PM, mfojtik@redhat.com wrote:
> 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
>

ACK

Mime
View raw message