mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 18:08:38 -06:00
Access _site of cluster instead of site
This commit is contained in:
parent
353214098b
commit
7376314821
@ -279,7 +279,7 @@ class VMInterfaceBulkEditForm(NetBoxModelBulkEditForm):
|
|||||||
# Check interface sites. First interface should set site, further interfaces will either continue the
|
# Check interface sites. First interface should set site, further interfaces will either continue the
|
||||||
# loop or reset back to no site and break the loop.
|
# loop or reset back to no site and break the loop.
|
||||||
for interface in interfaces:
|
for interface in interfaces:
|
||||||
vm_site = interface.virtual_machine.site or interface.virtual_machine.cluster.site
|
vm_site = interface.virtual_machine.site or interface.virtual_machine.cluster._site
|
||||||
if site is None:
|
if site is None:
|
||||||
site = vm_site
|
site = vm_site
|
||||||
elif vm_site is not site:
|
elif vm_site is not site:
|
||||||
|
Loading…
Reference in New Issue
Block a user