deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@apache.org
Subject [4/10] git commit: CIMI (models/schema.rb): use OrderedHash in to_xml to fix ordering of elements
Date Mon, 24 Sep 2012 23:52:48 GMT
CIMI (models/schema.rb): use OrderedHash in to_xml to fix ordering of elements


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/d3601121
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/d3601121
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/d3601121

Branch: refs/heads/master
Commit: d3601121817a54aa7228496565cc4427899f027f
Parents: 162e8fd
Author: David Lutterkort <lutter@redhat.com>
Authored: Tue Sep 18 16:17:00 2012 -0700
Committer: David Lutterkort <lutter@redhat.com>
Committed: Mon Sep 24 16:52:14 2012 -0700

----------------------------------------------------------------------
 server/lib/cimi/models/schema.rb |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/d3601121/server/lib/cimi/models/schema.rb
----------------------------------------------------------------------
diff --git a/server/lib/cimi/models/schema.rb b/server/lib/cimi/models/schema.rb
index f5097e0..ed3541a 100644
--- a/server/lib/cimi/models/schema.rb
+++ b/server/lib/cimi/models/schema.rb
@@ -234,7 +234,8 @@ class CIMI::Model::Schema
     model
   end
 
-  def to_xml(model, xml = {})
+  def to_xml(model, xml = nil)
+    xml ||= OrderedHash.new
     @attributes.freeze
     @attributes.each { |attr| attr.to_xml(model, xml) }
     xml


Mime
View raw message