dyntool 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dyntool.rb +3 -5
- metadata +2 -2
data/lib/dyntool.rb
CHANGED
@@ -566,14 +566,12 @@ class OperateDyn
|
|
566
566
|
@dcs = @dcs + @shifto
|
567
567
|
end
|
568
568
|
end
|
569
|
-
|
570
|
-
if @dcs_len == 0
|
569
|
+
if @dcs.nil?
|
571
570
|
abort("The region #{region}, has empty dc list. aborting....")
|
572
571
|
end
|
573
572
|
@dcs.each do |dc|
|
574
573
|
@providers = @@conf.GetDcProviders(dc)
|
575
|
-
|
576
|
-
if @providers_len == 0
|
574
|
+
if @providers.nil?
|
577
575
|
abort("The DC #{dc}, has empty providers list. aborting....")
|
578
576
|
end
|
579
577
|
if (flag == "provider")
|
@@ -588,7 +586,7 @@ class OperateDyn
|
|
588
586
|
@ips = @ips.uniq
|
589
587
|
end
|
590
588
|
@ips_len = @ips.size
|
591
|
-
if @
|
589
|
+
if @ips.nil?
|
592
590
|
abort("The region #{region}, has empty ip list. aborting....")
|
593
591
|
end
|
594
592
|
@ips_hash = BuildIPs(@ips)
|