Explorar el Código

move this down in the case of classic

Chris Mague hace 6 años
padre
commit
97e94aa118
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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