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 - Fixes nits on MachineImage model - DTACLOUD-378
Date Thu, 22 Nov 2012 09:46:34 GMT
On 11/22/2012 09:24 AM, marios@redhat.com wrote:

ACK.

> From: marios <marios@redhat.com>
>
> https://issues.apache.org/jira/browse/DTACLOUD-378
>
> Signed-off-by: marios <marios@redhat.com>
> ---
>   server/lib/cimi/models/machine_image.rb | 8 +++++---
>   1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/server/lib/cimi/models/machine_image.rb b/server/lib/cimi/models/machine_image.rb
> index 3e1e604..6034e5b 100644
> --- a/server/lib/cimi/models/machine_image.rb
> +++ b/server/lib/cimi/models/machine_image.rb
> @@ -18,8 +18,9 @@ class CIMI::Model::MachineImage < CIMI::Model::Base
>     acts_as_root_entity
>
>     text :state
> -  href :image_location
> -  text :image_data
> +  text :type
> +  text :image_location
> +  href :related_image
>
>     array :operations do
>       scalar :rel, :href
> @@ -41,9 +42,10 @@ class CIMI::Model::MachineImage < CIMI::Model::Base
>         :name => image.id,
>         :id => context.machine_image_url(image.id),
>         :state => image.state || 'UNKNOWN',
> +      :type => "IMAGE",
>         :description => image.description,
>         :created => Time.now.xmlschema,
> -      :image_location => { :href => "#{context.driver.name}://#{image.id}" } #
FIXME
> +      :image_location => "#{context.driver.name}://#{image.id}" # FIXME
>       )
>     end
>
>


-- 

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

Mime
View raw message