mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-17 13:08:16 -06:00
15020 Update assigned VMs site when move cluster
This commit is contained in:
parent
9f25289ce2
commit
41ce06976d
@ -141,3 +141,7 @@ class Cluster(ContactsMixin, PrimaryModel):
|
||||
"{count} devices are assigned as hosts for this cluster but are not in site {site}"
|
||||
).format(count=nonsite_devices, site=self.site)
|
||||
})
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
# Update Site for all assigned virtual machines
|
||||
self.virtual_machines.all().update(site=self.site)
|
||||
|
Loading…
Reference in New Issue
Block a user