incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tcraw...@redhat.com
Subject [PATCH 2/4] Don't convert in_use to in-use, because the client will kindly convert it back.
Date Wed, 15 Dec 2010 23:04:40 GMT
From: Tobias Crawley <tcrawley@redhat.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 a019fa4..779a2d4 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


Mime
View raw message