You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by Jan Provaznik <jp...@redhat.com> on 2012/10/01 10:36:25 UTC

Re: [PATCH core] Client: Send API_PROVIDER when changing driver

On 09/27/2012 12:45 PM, mfojtik@redhat.com wrote:
> From: Michal Fojtik <mf...@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 <mf...@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