incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Su <r...@redhat.com>
Subject [PATCH core] Ensure features and entrypoints are updated when driver is switched
Date Fri, 23 Sep 2011 17:40:35 GMT
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


Mime
View raw message