Browse Source

move behind

Chris Mague 6 năm trước cách đây
mục cha
commit
f0000db63f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/neoinfra/vpcs.rb

+ 1 - 1
lib/neoinfra/vpcs.rb

@@ -91,8 +91,8 @@ module NeoInfra
               state: subnet.state
             )
             sn.save
-            VpcSubnet.create(from_node: sn, to_node: Vpc.where(vpc_id: subnet.vpc_id).first)
             begin
+              VpcSubnet.create(from_node: sn, to_node: Vpc.where(vpc_id: subnet.vpc_id).first)
               SubnetAz.create(from_node: sn, to_node: Az.where(az: subnet.availability_zone).first)
             rescue Exception => e 
               #  Handle the case of hanging subnets