Chris Mague %!s(int64=7) %!d(string=hai) anos
pai
achega
186c07f814
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      lib/neoinfra/vpcs.rb

+ 2 - 3
lib/neoinfra/vpcs.rb

@@ -18,12 +18,11 @@ module NeoInfra
     end
 
     def non_default_vpc_count
-      p Vpc.all
-      21
+      Vpc.all.collect{|x| x.default}.select{|y| y == "false"}.length
     end
 
     def default_vpc_count
-      22
+      Vpc.all.collect{|x| x.default}.select{|y| y == "true"}.length
     end
 
     def list_vpcs