deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [2/2] git commit: EC2: Fixed params for register/deregister actions on lb
Date Mon, 13 Aug 2012 14:15:20 GMT
EC2: Fixed params for register/deregister actions on lb


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/ecc9ac0c
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/ecc9ac0c
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/ecc9ac0c

Branch: refs/heads/master
Commit: ecc9ac0c51ae8ea7521cfd4f6d6f6146a02f022f
Parents: 4ca9433
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Mon Aug 13 15:38:38 2012 +0200
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Mon Aug 13 15:38:38 2012 +0200

----------------------------------------------------------------------
 .../lib/deltacloud/collections/load_balancers.rb   |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/ecc9ac0c/server/lib/deltacloud/collections/load_balancers.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/collections/load_balancers.rb b/server/lib/deltacloud/collections/load_balancers.rb
index f560f16..ce2c42a 100644
--- a/server/lib/deltacloud/collections/load_balancers.rb
+++ b/server/lib/deltacloud/collections/load_balancers.rb
@@ -63,7 +63,7 @@ module Deltacloud::Collections
         param :instance_id, :string,  :required
         control do
           driver.lb_register_instance(credentials, params)
-          @load_balancer = driver.load_balancer(credentials, params[:id])
+          @load_balancer = driver.load_balancer(credentials, :id => params[:id])
           respond_to do |format|
             format.xml { haml :'load_balancers/show' }
             format.json { xml_to_json('load_balancers/show') }
@@ -76,7 +76,7 @@ module Deltacloud::Collections
         param :instance_id, :string,  :required
         control do
           driver.lb_unregister_instance(credentials, params)
-          @load_balancer = driver.load_balancer(credentials, params[:id])
+          @load_balancer = driver.load_balancer(credentials, :id => params[:id])
           respond_to do |format|
             format.xml { haml :'load_balancers/show' }
             format.json { xml_to_json('load_balancers/show')}


Mime
View raw message