deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@apache.org
Subject [3/4] git commit: CIMI: Initialize attribute_values as OrderedHash
Date Tue, 18 Dec 2012 23:02:36 GMT
CIMI: Initialize attribute_values as OrderedHash

Signed-off-by: Michal fojtik <mfojtik@redhat.com>
TrackedAt: http://tracker.deltacloud.org/patch/5392808938a9ff9b27bfea8935afb336210df592


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

Branch: refs/heads/master
Commit: c4921e8e3ec21f65c2b1f39dc60203913e19e565
Parents: 93690c1
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Fri Dec 14 12:07:13 2012 +0100
Committer: David Lutterkort <lutter@redhat.com>
Committed: Tue Dec 18 15:00:35 2012 -0800

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


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/c4921e8e/server/lib/cimi/models/base.rb
----------------------------------------------------------------------
diff --git a/server/lib/cimi/models/base.rb b/server/lib/cimi/models/base.rb
index 40b3454..9928fd9 100644
--- a/server/lib/cimi/models/base.rb
+++ b/server/lib/cimi/models/base.rb
@@ -181,7 +181,7 @@ class CIMI::Model::Resource
   #
   def initialize(values = {})
     names = self.class.schema.attribute_names
-    @attribute_values = names.inject({}) do |hash, name|
+    @attribute_values = names.inject(OrderedHash.new) do |hash, name|
       hash[name] = self.class.schema.convert(name, values[name])
       hash
     end


Mime
View raw message