incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@redhat.com
Subject [PATCH 1/4] * server.rb (firewalls/new_rule): the name of the firewall is in param[:id]
Date Sat, 20 Aug 2011 01:02:05 GMT
From: David Lutterkort <lutter@redhat.com>


Signed-off-by: David Lutterkort <lutter@redhat.com>
---
 server/server.rb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/server.rb b/server/server.rb
index 3427549..1b50476 100644
--- a/server/server.rb
+++ b/server/server.rb
@@ -1077,9 +1077,9 @@ collection :firewalls do
 
   operation :new_rule, :form => true, :member => true, :method => :get do
     description "A form to create a new firewall rule"
-    param :firewall,  :string,  :optional
+    param :id,  :string,  :required
     control do
-      @firewall_name = params[:firewall]
+      @firewall_name = params[:id]
       respond_to do |format|
         format.html {haml :"firewalls/new_rule" }
       end
-- 
1.7.6


Mime
View raw message