dyntool 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dyntool.rb +8 -0
- metadata +2 -2
data/lib/dyntool.rb
CHANGED
@@ -566,8 +566,16 @@ class OperateDyn
|
|
566
566
|
@dcs = @dcs + @shifto
|
567
567
|
end
|
568
568
|
end
|
569
|
+
@dcs_len = @dcs.size
|
570
|
+
if @dcs_len == 0
|
571
|
+
abort("The region #{region}, has empty dc list. aborting....")
|
572
|
+
end
|
569
573
|
@dcs.each do |dc|
|
570
574
|
@providers = @@conf.GetDcProviders(dc)
|
575
|
+
@providers.len == @providers.size
|
576
|
+
if @providers_len == 0
|
577
|
+
abort("The DC #{dc}, has empty providers list. aborting....")
|
578
|
+
end
|
571
579
|
if (flag == "provider")
|
572
580
|
if @providers.include? "#{shiftfrom}"
|
573
581
|
@providers = @providers - @shiftfrom
|