You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by mf...@redhat.com on 2012/10/09 15:00:15 UTC
[PATCH core 3/3] CIMI: (Experimental) Deserialization for Collection
From: Michal Fojtik <mf...@redhat.com>
Signed-off-by: Michal fojtik <mf...@redhat.com>
---
server/lib/cimi/models/schema.rb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/server/lib/cimi/models/schema.rb b/server/lib/cimi/models/schema.rb
index b069622..d0612a6 100644
--- a/server/lib/cimi/models/schema.rb
+++ b/server/lib/cimi/models/schema.rb
@@ -226,7 +226,8 @@ class CIMI::Model::Schema
end
def from_xml(xml, model)
- raise "Parsing collections (#{name}) not supported"
+ #raise "Parsing collections (#{name}) not supported"
+ model[name] = xml[xml_name]
end
def from_json(json, model)
--
1.7.10.2