On 11/22/2012 09:24 AM, [email protected] wrote:

ACK.

From: marios <[email protected]>

https://issues.apache.org/jira/browse/DTACLOUD-378

Signed-off-by: marios <[email protected]>
---
  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 <[email protected]>
Deltacloud API, CloudForms

Reply via email to