You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by ma...@redhat.com on 2012/11/19 15:54:05 UTC
[PATCH 1/3] Fix bug in images show.xml ... hwp.name vs hwp.id
From: marios <ma...@redhat.com>
Signed-off-by: marios <ma...@redhat.com>
---
server/views/images/show.xml.haml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/views/images/show.xml.haml b/server/views/images/show.xml.haml
index 66b4f9a..6350706 100644
--- a/server/views/images/show.xml.haml
+++ b/server/views/images/show.xml.haml
@@ -12,7 +12,7 @@
- if @image.hardware_profiles
%hardware_profiles
- @image.hardware_profiles.each do |profile|
- %hardware_profile{ :href => hardware_profile_url(profile.name), :id => profile.name, :rel => :hardware_profile }
+ %hardware_profile{ :href => hardware_profile_url(profile.id), :id => profile.id, :rel => :hardware_profile }
%actions
%link{ :rel => 'create_instance', :method => :post, :href => "#{instances_url};image_id=#{@image.id}"}
%link{ :rel => 'destroy_image', :method => :delete, :href => "#{destroy_image_url(@image.id)}" }
--
1.7.11.7