incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Lalancette <clala...@redhat.com>
Subject [PATCH] Create the correct HREF for loadbalancers.
Date Wed, 04 May 2011 17:50:57 GMT
Due to what I suppose was a rogue copy-n-paste, the HREF in
the XML output from a loadbalancer pointed to a key URL, not
a load_balancer URL.  Fix that here.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
---
 server/views/load_balancers/show.xml.haml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/views/load_balancers/show.xml.haml b/server/views/load_balancers/show.xml.haml
index e36f79f..996bd8d 100644
--- a/server/views/load_balancers/show.xml.haml
+++ b/server/views/load_balancers/show.xml.haml
@@ -1,6 +1,6 @@
 - unless defined?(partial)
   !!! XML
-%load_balancer{ :href => key_url(@load_balancer.id), :id => @load_balancer.id}
+%load_balancer{ :href => load_balancer_url(@load_balancer.id), :id => @load_balancer.id}
   %actions
     %link{ :rel => "destroy", :method => "delete", :href => destroy_load_balancer_url(@load_balancer.id)}
   %public_addresses
-- 
1.7.4.4


Mime
View raw message