You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2013/01/03 12:05:09 UTC

[4/7] git commit: CIMI: Rename 'name' attribute in properties to 'key' in MachineTemplate

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 <mf...@redhat.com>
Authored: Wed Jan 2 13:22:06 2013 +0100
Committer: Michal fojtik <mf...@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 => ''
       )