deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1199723 - /incubator/deltacloud/trunk/server/lib/deltacloud/models/instance.rb
Date Wed, 09 Nov 2011 12:48:52 GMT
Author: mfojtik
Date: Wed Nov  9 12:48:52 2011
New Revision: 1199723

URL: http://svn.apache.org/viewvc?rev=1199723&view=rev
Log:
Core: Fixed JSON output to support new instance address model

Modified:
    incubator/deltacloud/trunk/server/lib/deltacloud/models/instance.rb

Modified: incubator/deltacloud/trunk/server/lib/deltacloud/models/instance.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/models/instance.rb?rev=1199723&r1=1199722&r2=1199723&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/models/instance.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/models/instance.rb Wed Nov  9 12:48:52
2011
@@ -75,7 +75,7 @@ class Instance < BaseModel
   def to_hash
     h = self.to_hash_original
     h[:public_addresses] = h[:public_addresses].collect do |address|
-      { :address => { :type => address_type(address), :value => address } }
+      { :address => { :type => address.address_type, :value => address } }
     end
     h[:actions] = self.actions.collect do |action|
       { :"#{action}" => {



Mime
View raw message