You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by ma...@apache.org on 2013/06/28 11:06:35 UTC

[6/9] git commit: Added note

Added note


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/a426922e
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/a426922e
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/a426922e

Branch: refs/heads/master
Commit: a426922e289d45c541b81bc628660f02db0ff2b4
Parents: 4776726
Author: David Ellinger <de...@ltionline.com>
Authored: Tue Jun 4 15:59:38 2013 -0400
Committer: marios <ma...@redhat.com>
Committed: Fri Jun 28 12:05:50 2013 +0300

----------------------------------------------------------------------
 server/lib/deltacloud/drivers/ec2/ec2_driver.rb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a426922e/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/ec2/ec2_driver.rb b/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
index 16d7d18..da627c5 100644
--- a/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
+++ b/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
@@ -332,9 +332,7 @@ module Deltacloud
 
         def stop_instance(credentials, instance_id)
           ec2 = new_client(credentials)
-          #TODO: If image root is ebs (or persistent) then stop instance otherwise need to run "destroy_instance"
-          #ec2_instance = ec2.instances[:instance_id]
-          #if ec2_instance.root_device_type == "ebs"
+          # Non EBS backed instances cannot be stopped and only can be terminated.
           ec2_inst = ec2.describe_instances([instance_id]).first
           if ec2_inst[:root_device_type] == "ebs"
             if ec2.stop_instances([instance_id])