You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2011/09/26 11:50:40 UTC
svn commit: r1175755 - /incubator/deltacloud/trunk/client/lib/deltacloud.rb
Author: mfojtik
Date: Mon Sep 26 09:50:40 2011
New Revision: 1175755
URL: http://svn.apache.org/viewvc?rev=1175755&view=rev
Log:
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.
Modified:
incubator/deltacloud/trunk/client/lib/deltacloud.rb
Modified: incubator/deltacloud/trunk/client/lib/deltacloud.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/client/lib/deltacloud.rb?rev=1175755&r1=1175754&r2=1175755&view=diff
==============================================================================
--- incubator/deltacloud/trunk/client/lib/deltacloud.rb (original)
+++ incubator/deltacloud/trunk/client/lib/deltacloud.rb Mon Sep 26 09:50:40 2011
@@ -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]