deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "marios@redhat.com" <mandr...@redhat.com>
Subject Re: [PATCH core 5/7] CIMI: Rename 'name' attribute in properties to 'key' in MachineTemplate
Date Thu, 03 Jan 2013 10:59:52 GMT
ack

On 02/01/13 14:23, mfojtik@redhat.com wrote:
> From: Michal Fojtik <mfojtik@redhat.com>
> 
> 
> Signed-off-by: Michal fojtik <mfojtik@redhat.com>
> ---
>  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 => ''
>        )
> 


Mime
View raw message