dyntool 0.0.11 → 0.0.12

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 +3 -5
  2. 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
- @dcs_len = @dcs.size
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
- @providers.len == @providers.size
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 @ips_len == 0
589
+ if @ips.nil?
592
590
  abort("The region #{region}, has empty ip list. aborting....")
593
591
  end
594
592
  @ips_hash = BuildIPs(@ips)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 11
9
- version: 0.0.11
8
+ - 12
9
+ version: 0.0.12
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ariel Moskovich