deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject git commit: EC2: Fixed missing :id parameter in create_load_balancer (DTACLOUD-259)
Date Tue, 10 Jul 2012 11:09:08 GMT
Updated Branches:
  refs/heads/master 121c6beb3 -> 311baf1b9


EC2: Fixed missing :id parameter in create_load_balancer (DTACLOUD-259)


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

Branch: refs/heads/master
Commit: 311baf1b966fe98d691cc3cdf574ed515773058b
Parents: 121c6be
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Tue Jul 10 13:09:59 2012 +0200
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Tue Jul 10 13:09:59 2012 +0200

----------------------------------------------------------------------
 server/lib/deltacloud/drivers/ec2/ec2_driver.rb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/311baf1b/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/ec2/ec2_driver.rb b/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
index bcd72ff..4befa79 100644
--- a/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
+++ b/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
@@ -378,7 +378,7 @@ module Deltacloud
                 :instance_port => opts['listener_instance_port'],
                 :protocol => opts['listener_protocol']}]
             )
-            return load_balancer(credentials, opts['name'])
+            return load_balancer(credentials, :id => opts['name'])
           end
         end
 
@@ -588,7 +588,7 @@ module Deltacloud
             unless ec2.delete_volume(opts[:id])
               raise Deltacloud::BackendError.new(500, "StorageVolume", "Cannot delete storage
volume")
             end
-            storage_volume(credentials, opts[:id])
+            storage_volume(credentials, :id => opts[:id])
           end
         end
 


Mime
View raw message