deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From email4t...@gmail.com
Subject [PATCH] CIMI: json serialization not using correct symbol
Date Mon, 21 Nov 2011 18:42:59 GMT
From: Tong Li <litong01@us.ibm.com>

---
 server/lib/cimi/model/base.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/lib/cimi/model/base.rb b/server/lib/cimi/model/base.rb
index 7cc3f49..06d8f27 100644
--- a/server/lib/cimi/model/base.rb
+++ b/server/lib/cimi/model/base.rb
@@ -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)
-- 
1.7.4.1


Mime
View raw message