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 <[email protected]>
---
 .../lib/deltacloud/drivers/rhevm/rhevm_driver.rb   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb 
b/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
index 2970ca4..24a98b8 100644
--- a/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
+++ b/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
@@ -79,7 +79,7 @@ class RHEVMDriver < Deltacloud::BaseDriver
 
   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 )
-- 
1.7.4.4

Reply via email to