You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by mf...@redhat.com on 2010/11/23 12:30:37 UTC

[PATCH core] Fix for issue #DTACLOUD-9

From: Michal Fojtik <mf...@redhat.com>

This will remove 'start' action in EC2 state machine when
instance is in stopped state.
---
 server/lib/deltacloud/drivers/ec2/ec2_driver.rb |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/server/lib/deltacloud/drivers/ec2/ec2_driver.rb b/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
index 45f2e01..e215a2f 100644
--- a/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
+++ b/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
@@ -108,7 +108,6 @@ class EC2Driver < Deltacloud::BaseDriver
     pending.to( :running )        .automatically
     pending.to( :stopping )       .on( :stop )
     pending.to( :stopped )        .automatically
-    stopped.to( :running )        .on( :start )
     running.to( :running )        .on( :reboot )
     running.to( :stopping )       .on( :stop )
     shutting_down.to( :stopped )  .automatically
-- 
1.7.3.2