incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Fojtik <mfoj...@redhat.com>
Subject Re: [PATCH core] Ensure features and entrypoints are updated when driver is switched
Date Mon, 26 Sep 2011 09:46:56 GMT
On Sep 23, 2011, at 7:40 PM, Richard Su wrote:

> discover_entry_points runs only if entrypoints is empty. When driver
> is switched entrypoints was not resetting because it would have been
> prepopulated with values for the previous driver.

Good catch!. ACK.

 -- Michal

> ---
> client/lib/deltacloud.rb |    1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/client/lib/deltacloud.rb b/client/lib/deltacloud.rb
> index 581417b..91e4f5f 100644
> --- a/client/lib/deltacloud.rb
> +++ b/client/lib/deltacloud.rb
> @@ -319,6 +319,7 @@ module DeltaCloud
>       if driver
>         @api_driver = driver 
>         @driver_name = driver
> +        @features, @entry_points = {}, {}
>         discover_entry_points
>       end
>       @username = opts[:username] if opts[:username]
> -- 
> 1.7.6.2
> 

------------------------------------------------------
Michal Fojtik, mfojtik@redhat.com
Deltacloud API: http://deltacloud.org


Mime
View raw message