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] FGCP: copied image size into InstanceProfile's :storage. Allows cimi /disks to work
Date Fri, 15 Feb 2013 12:23:46 GMT
On 02/15, diesk@fast.au.fujitsu.com wrote:

ACK.

> From: Dies Koper <diesk@fast.au.fujitsu.com>
> 
> ---
>  server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb b/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb
> index 5cf957a..af61fe9 100644
> --- a/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb
> +++ b/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb
> @@ -1558,6 +1558,8 @@ eofwopxml
>          images['diskimages'][0]['diskimage'].each do |img|
>            if vserver['diskimageId'][0] == img['diskimageId'][0]
>              instance.username = img['osName'][0] =~ /Windows.*/ ? 'Administrator' :
'root'
> +            instance.instance_profile.storage = img['size'][0].to_s
> +            break
>            end
>          end
>          instance.password = client.get_vserver_initial_password(vserver['vserverId'][0])['initialPassword'][0]
> -- 
> 1.8.0.msysgit.0
> 
> 

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

Mime
View raw message