incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1138183 - /incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
Date Tue, 21 Jun 2011 21:03:15 GMT
Author: mfojtik
Date: Tue Jun 21 21:03:15 2011
New Revision: 1138183

URL: http://svn.apache.org/viewvc?rev=1138183&view=rev
Log:
Fix up the RHEV-M pending state.

In particular, RHEV-M does *not* go pending->running automatically;
instead, it requires an explicit action.  Make the state machine
reflect that.

Signed-off-by: Chris Lalancette <clalance@redhat.com>

Modified:
    incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb

Modified: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb?rev=1138183&r1=1138182&r2=1138183&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb Tue Jun
21 21:03:15 2011
@@ -79,7 +79,7 @@ class RHEVMDriver < Deltacloud::BaseDriv
 
   define_instance_states do
     start.to( :pending )          .automatically
-    pending.to( :running )        .automatically
+    pending.to( :running )        .on( :start )
     pending.to( :stopped )        .automatically
     stopped.to( :running )        .on( :start )
     running.to( :stopping )       .on( :stop )



Mime
View raw message