deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core 19/51] Core: Fixed wrong brackets in response_to block under load_balancers
Date Mon, 21 May 2012 10:07:00 GMT
From: Michal Fojtik <mfojtik@redhat.com>


Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 server/lib/deltacloud/collections/load_balancers.rb |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/lib/deltacloud/collections/load_balancers.rb b/server/lib/deltacloud/collections/load_balancers.rb
index d093ead..f6fbc62 100644
--- a/server/lib/deltacloud/collections/load_balancers.rb
+++ b/server/lib/deltacloud/collections/load_balancers.rb
@@ -48,7 +48,7 @@ module Deltacloud::Collections
           @load_balancer = driver.load_balancer(credential, params[:id])
           respond_to do |format|
             format.xml { haml :'load_balancers/show' }
-            format.json ( xml_to_json('load_balancers/show'))
+            format.json { xml_to_json('load_balancers/show') }
             format.html { haml :'load_balancers/show' }
           end
         end
@@ -61,7 +61,7 @@ module Deltacloud::Collections
           @load_balancer = driver.load_balancer(credential, params[:id])
           respond_to do |format|
             format.xml { haml :'load_balancers/show' }
-            format.json ( xml_to_json('load_balancers/show'))
+            format.json { xml_to_json('load_balancers/show')}
             format.html { haml :'load_balancers/show' }
           end
         end
-- 
1.7.10.1


Mime
View raw message