Browse Source

add subnet name if the tag is set

Chris Mague 7 years ago
parent
commit
3f6457777a
1 changed files with 3 additions and 2 deletions
  1. 3 2
      lib/neoinfra/vpcs.rb

+ 3 - 2
lib/neoinfra/vpcs.rb

@@ -37,8 +37,8 @@ module NeoInfra
                            vpc.tags['Name']
                          else
                            vpc.id
-                                   end
-                           end
+                         end
+                       end
             vpc_id = Vpc.new(
               vpc_id: vpc.id,
               name: vpc_name,
@@ -64,6 +64,7 @@ module NeoInfra
             sn = Subnet.new(
               subnet_id: subnet.subnet_id,
               cidr: subnet.cidr_block,
+              name: subnet_name,
               ip_count: subnet.available_ip_address_count,
               state: subnet.state
             )