correct startup script order for asns
This commit is contained in:
parent
c93e0e5a6b
commit
9c84ceb856
18 changed files with 2 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,6 +3,7 @@
|
|||
.initializers
|
||||
docker-compose.override.yml
|
||||
*.pem
|
||||
.DS_Store
|
||||
configuration/*
|
||||
!configuration/configuration.py
|
||||
!configuration/extra.py
|
||||
|
|
|
@ -52,6 +52,7 @@ for params in ip_addresses:
|
|||
params["assigned_object_id"] = Interface.objects.get(**query).id
|
||||
else:
|
||||
query = {field: params.pop(assoc)}
|
||||
|
||||
params[assoc] = model.objects.get(**query)
|
||||
|
||||
ip_address, created = IPAddress.objects.get_or_create(**params)
|
Loading…
Add table
Add a link
Reference in a new issue