You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by tc...@redhat.com on 2010/12/21 13:26:53 UTC

[PATCH 12/14] Don't convert in_use to in-use, because the client will kindly convert it back.

From: Tobias Crawley <tc...@gmail.com>

See client/lib/deltacloud.rb:144
---
 server/lib/deltacloud/drivers/ec2/ec2_driver.rb |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/server/lib/deltacloud/drivers/ec2/ec2_driver.rb b/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
index 77304c0..cfa45de 100644
--- a/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
+++ b/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
@@ -561,8 +561,7 @@ module Deltacloud
           StorageVolume.new(
             :id => volume[:aws_id],
             :created => volume[:aws_created_at],
-            # Fix IN_USE to be IN-USE 
-            :state => volume[:aws_status] ? volume[:aws_status].tr('_', '-').upcase : 'unknown',
+            :state => volume[:aws_status] ? volume[:aws_status].upcase : 'unknown',
             :capacity => volume[:aws_size],
             :instance_id => volume[:aws_instance_id],
             :realm_id => volume[:zone],
-- 
1.7.3.2