On 10/07/2011 10:50 AM, mtaylor(a)redhat.com wrote:
From: Martyn Taylor<mtaylor(a)redhat.com>
---
src/app/views/api/images/_factory_image.xml.haml | 8 ++++----
.../_factory_provider_image.xml.haml | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/app/views/api/images/_factory_image.xml.haml
b/src/app/views/api/images/_factory_image.xml.haml
index cea74bc..09d2263 100644
--- a/src/app/views/api/images/_factory_image.xml.haml
+++ b/src/app/views/api/images/_factory_image.xml.haml
@@ -1,7 +1,7 @@
!!!XML
-%image{:id => image.id, :href => image.href }
- %build{:id => image.build.id, :href => image.build.href}
- %targetimages
+%image{:id => image.id, :href => api_image_url(image.id) }
+ %build{:id => image.build.id, :href => api_build_url(image.build.id)}
+ %target_images
- image.build.target_images.each do |target_image|
- %targetimage{:id => target_image.id, :href => target_image.href}
+ %target_image{:id => target_image.id, :href =>
api_target_image_url(target_image.id)}
%status=Aeolus::Image::Factory::TargetImage.status(target_image.id)
\ No newline at end of file
diff --git a/src/app/views/api/provider_images/_factory_provider_image.xml.haml
b/src/app/views/api/provider_images/_factory_provider_image.xml.haml
index 53c7a9d..aa849a2 100644
--- a/src/app/views/api/provider_images/_factory_provider_image.xml.haml
+++ b/src/app/views/api/provider_images/_factory_provider_image.xml.haml
@@ -1,3 +1,3 @@
!!!XML
-%providerimage{:id => provider_image.id, :href => provider_image.href }
+%provider_image{:id => provider_image.id, :href =>
api_provider_image_url(provider_image.id) }
%status=Aeolus::Image::Factory::ProviderImage.status(provider_image.id)
\ No newline at end of file
ACK to both patches.
--
No trees were killed to send this message, but a large number of
electrons were terribly inconvenienced.