mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-11-07 16:44:02 +01:00
Update startup_scripts/270_primary_ips.py
Ah, of course.. I would agree. :) Co-authored-by: Christian Mäder <cimnine@users.noreply.github.com>
This commit is contained in:
parent
584566b0f0
commit
385c66e30d
@ -38,10 +38,7 @@ optional_assocs = {
|
||||
|
||||
if devices is None and virtual_machines is None:
|
||||
sys.exit()
|
||||
elif devices is not None:
|
||||
link_primary_ip(devices, Device)
|
||||
elif virtual_machines is not None:
|
||||
link_primary_ip(virtual_machines, VirtualMachine)
|
||||
else:
|
||||
if devices is not None:
|
||||
link_primary_ip(devices, Device)
|
||||
if virtual_machines is not None:
|
||||
link_primary_ip(virtual_machines, VirtualMachine)
|
||||
|
Loading…
Reference in New Issue
Block a user