15020 Update assigned VMs site when move cluster

This commit is contained in:
Arthur 2024-02-02 11:17:45 -08:00
parent 9f25289ce2
commit 41ce06976d

View File

@ -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)