incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core] Fixed Realm name in EC2 to be the same as id
Date Thu, 21 Oct 2010 15:32:28 GMT
From: Michal Fojtik <mfojtik@redhat.com>

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

diff --git a/server/lib/deltacloud/drivers/ec2/ec2_driver.rb b/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
index 0e71ea0..9b37069 100644
--- a/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
+++ b/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
@@ -437,7 +437,7 @@ class EC2Driver < Deltacloud::BaseDriver
   def convert_realm(ec2_realm)
     Realm.new( {
       :id=>ec2_realm['zoneName'],
-      :name=>ec2_realm['regionName'],
+      :name=>ec2_realm['zoneName'],
       :limit=>ec2_realm['zoneState'].eql?('available') ? :unlimited : 0,
       :state=>ec2_realm['zoneState'].upcase,
     } )
-- 
1.7.2.3


Mime
View raw message