deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Fojtik <mfoj...@redhat.com>
Subject Re: [PATCH] CIMI: use storage volume name for cimi volume name if available, else id. DTACLOUD-535.
Date Mon, 08 Apr 2013 08:47:58 GMT
On 04/06/2013 12:55 PM, diesk@fast.au.fujitsu.com wrote:

ACK.

> From: Dies Koper <diesk@fast.au.fujitsu.com>
>
> ---
>   server/lib/cimi/service/volume.rb | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/server/lib/cimi/service/volume.rb b/server/lib/cimi/service/volume.rb
> index 2e38691..969da43 100644
> --- a/server/lib/cimi/service/volume.rb
> +++ b/server/lib/cimi/service/volume.rb
> @@ -48,7 +48,7 @@ class CIMI::Service::Volume < CIMI::Service::Base
>
>     def self.from_storage_volume(volume, context)
>       self.new(context, :values => {
> -      :name => volume.id,
> +      :name => volume.name || volume.id,
>         :created => volume.created.nil? ? nil : Time.parse(volume.created).xmlschema,
>         :id => context.volume_url(volume.id),
>         :capacity => context.to_kibibyte(volume.capacity, 'GB'),
>


-- 

Michal Fojtik <mfojtik@redhat.com>
Deltacloud API, CloudForms

Mime
View raw message