deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [4/7] git commit: CIMI: Rename 'name' attribute in properties to 'key' in MachineTemplate
Date Thu, 03 Jan 2013 11:05:09 GMT
CIMI: Rename 'name' attribute in properties to 'key' in MachineTemplate


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

Branch: refs/heads/master
Commit: 56bfe165a348c9b17191c8f7d6ea99c615606bbe
Parents: 29bea3f
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Wed Jan 2 13:22:06 2013 +0100
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Thu Jan 3 12:02:18 2013 +0100

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


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/56bfe165/server/lib/cimi/models/machine_template.rb
----------------------------------------------------------------------
diff --git a/server/lib/cimi/models/machine_template.rb b/server/lib/cimi/models/machine_template.rb
index 9d6dac4..90ed025 100644
--- a/server/lib/cimi/models/machine_template.rb
+++ b/server/lib/cimi/models/machine_template.rb
@@ -81,7 +81,7 @@ class CIMI::Model::MachineTemplate < CIMI::Model::Base
         :description => xml['description'].first,
         :machine_config => xml['machineConfig'].first['href'],
         :machine_image => xml['machineImage'].first['href'],
-        :ent_properties => xml['property'].inject({}) { |r, p| r[p['name']]=p['content'];
r },
+        :ent_properties => xml['property'].inject({}) { |r, p| r[p['key']]=p['content'];
r },
         :be_kind => 'machine_template',
         :be_id => ''
       )


Mime
View raw message