You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by lu...@redhat.com on 2011/05/05 00:42:06 UTC
[PATCH 4/5] load_balancers: advertise the 'register' action
From: David Lutterkort <lu...@redhat.com>
Fixes https://issues.apache.org/jira/browse/DTACLOUD-36
Signed-off-by: David Lutterkort <lu...@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