Browse Source

fix counts

Chris Mague 7 năm trước cách đây
mục cha
commit
186c07f814
1 tập tin đã thay đổi với 2 bổ sung3 xóa
  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