incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@redhat.com
Subject [PATCH 4/5] load_balancers: advertise the 'register' action
Date Wed, 04 May 2011 22:42:06 GMT
From: David Lutterkort <lutter@redhat.com>

Fixes https://issues.apache.org/jira/browse/DTACLOUD-36

Signed-off-by: David Lutterkort <lutter@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 996bd8d..2eeb09e 100644
--- a/server/views/load_balancers/show.xml.haml
+++ b/server/views/load_balancers/show.xml.haml
@@ -3,6 +3,7 @@
 %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)}
+    %link{ :rel => "register", :method => "post", :href => register_load_balancer_url(@load_balancer.id)}
   %public_addresses
     - @load_balancer.public_addresses.each do |address|
       %address #{address}
@@ -18,4 +19,3 @@
     - @load_balancer.instances.each do |instance|
       %instance{:href => instance_url(instance.id), :id => instance.id}
         %link{:rel => "unregister", :href => unregister_load_balancer_url(@load_balancer.id,
{ :instance_id => instance.id})}
-
-- 
1.7.4.4


Mime
View raw message