deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1204986 - /deltacloud/trunk/server/lib/cimi/model/base.rb
Date Tue, 22 Nov 2011 13:29:16 GMT
Author: mfojtik
Date: Tue Nov 22 13:29:16 2011
New Revision: 1204986

URL: http://svn.apache.org/viewvc?rev=1204986&view=rev
Log:
CIMI: json serialization not using correct symbol

Modified:
    deltacloud/trunk/server/lib/cimi/model/base.rb

Modified: deltacloud/trunk/server/lib/cimi/model/base.rb
URL: http://svn.apache.org/viewvc/deltacloud/trunk/server/lib/cimi/model/base.rb?rev=1204986&r1=1204985&r2=1204986&view=diff
==============================================================================
--- deltacloud/trunk/server/lib/cimi/model/base.rb (original)
+++ deltacloud/trunk/server/lib/cimi/model/base.rb Tue Nov 22 13:29:16 2011
@@ -140,7 +140,7 @@ class CIMI::Model::Base
   end
 
   def self.to_json(model)
-    @schema.to_json(model)
+    JSON::unparse(@schema.to_json(model))
   end
 
   def self.to_xml(model)



Mime
View raw message