Преглед на файлове

move this down in the case of classic

Chris Mague преди 6 години
родител
ревизия
97e94aa118
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      lib/neoinfra/nodes.rb

+ 1 - 1
lib/neoinfra/nodes.rb

@@ -106,9 +106,9 @@ module NeoInfra
             n.save
             begin
               NodeAccount.create(from_node: n, to_node: AwsAccount.where(name: account[:name]).first)
-              NodeSubnet.create(from_node: n, to_node: Subnet.where(subnet_id: ec2.subnet_id).first)
               NodeAz.create(from_node: n, to_node: Az.where(az: ec2.availability_zone).first)
               NodeSshKey.create(from_node: n, to_node: SshKey.where(name: ec2.key_name).first)
+              NodeSubnet.create(from_node: n, to_node: Subnet.where(subnet_id: ec2.subnet_id).first)
             rescue Exception => e
               puts "Account #{account[:name]} couldn't load the following node: #{e.message}"
               p n