dyntool 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|