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:
Schylar Utley 2021-01-19 12:54:52 -06:00 committed by GitHub
parent 584566b0f0
commit 385c66e30d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,10 +38,7 @@ optional_assocs = {
if devices is None and virtual_machines is None: if devices is None and virtual_machines is None:
sys.exit() sys.exit()
elif devices is not None: if devices is not None:
link_primary_ip(devices, Device)
elif virtual_machines is not None:
link_primary_ip(virtual_machines, VirtualMachine)
else:
link_primary_ip(devices, Device) link_primary_ip(devices, Device)
if virtual_machines is not None:
link_primary_ip(virtual_machines, VirtualMachine) link_primary_ip(virtual_machines, VirtualMachine)