Return-Path: X-Original-To: apmail-deltacloud-dev-archive@www.apache.org Delivered-To: apmail-deltacloud-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0FDBEE4E2 for ; Thu, 3 Jan 2013 11:00:26 +0000 (UTC) Received: (qmail 25937 invoked by uid 500); 3 Jan 2013 11:00:25 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 25913 invoked by uid 500); 3 Jan 2013 11:00:25 -0000 Mailing-List: contact dev-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list dev@deltacloud.apache.org Received: (qmail 25897 invoked by uid 99); 3 Jan 2013 11:00:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2013 11:00:25 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mandreou@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2013 11:00:17 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r03Axuil006368 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 3 Jan 2013 05:59:56 -0500 Received: from [10.36.112.21] (ovpn-112-21.ams2.redhat.com [10.36.112.21]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r03AxriZ002708; Thu, 3 Jan 2013 05:59:54 -0500 Message-ID: <50E564A8.2080105@redhat.com> Date: Thu, 03 Jan 2013 12:59:52 +0200 From: "marios@redhat.com" User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: dev@deltacloud.apache.org CC: mfojtik@redhat.com Subject: Re: [PATCH core 5/7] CIMI: Rename 'name' attribute in properties to 'key' in MachineTemplate References: <1357129437-4647-1-git-send-email-mfojtik@redhat.com> <1357129437-4647-5-git-send-email-mfojtik@redhat.com> In-Reply-To: <1357129437-4647-5-git-send-email-mfojtik@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Virus-Checked: Checked by ClamAV on apache.org ack On 02/01/13 14:23, mfojtik@redhat.com wrote: > From: Michal Fojtik > > > Signed-off-by: Michal fojtik > --- > server/lib/cimi/models/machine_template.rb | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > 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 => '' > ) >