mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 04:22:01 -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
|
||||
# loop or reset back to no site and break the loop.
|
||||
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:
|
||||
site = vm_site
|
||||
elif vm_site is not site:
|
||||
|
Loading…
Reference in New Issue
Block a user