You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by Richard Su <rw...@redhat.com> on 2011/09/23 19:40:35 UTC
[PATCH core] Ensure features and entrypoints are updated when driver is switched
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.
---
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
Re: [PATCH core] Ensure features and entrypoints are updated when driver is switched
Posted by Michal Fojtik <mf...@redhat.com>.
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