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.
Files changed (2) hide show
  1. data/lib/dyntool.rb +8 -0
  2. 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
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 10
9
- version: 0.0.10
8
+ - 11
9
+ version: 0.0.11
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ariel Moskovich