incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1100963 - /incubator/deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
Date Mon, 09 May 2011 11:21:35 GMT
Author: mfojtik
Date: Mon May  9 11:21:35 2011
New Revision: 1100963

URL: http://svn.apache.org/viewvc?rev=1100963&view=rev
Log:
Fixed error when load_balancer_id is set to empty string (from web UI)

Modified:
    incubator/deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_driver.rb

Modified: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_driver.rb?rev=1100963&r1=1100962&r2=1100963&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_driver.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_driver.rb Mon May  9
11:21:35 2011
@@ -212,7 +212,7 @@ module Deltacloud
             tag_instance(credentials, new_instance, opts[:name])
             # Register Instance to Load Balancer if load_balancer_id is set.
             # This parameter is a feature parameter
-            if opts[:load_balancer_id]
+            if opts[:load_balancer_id] and opts[:load_balancer_id]!=""
               lb = lb_register_instance(credentials,
                                         {'id' => opts[:load_balancer_id],
                                          'instance_id' => new_instance.id})



Mime
View raw message