mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-10 04:06:47 +00:00
fix(reconciliation): serialize compute sync and enforce UUID identity
This commit is contained in:
parent
30c436ecde
commit
2cdf5dfca1
6 changed files with 534 additions and 96 deletions
|
|
@ -32,6 +32,11 @@ class Instance(models.Model):
|
|||
|
||||
objects = InstanceManager()
|
||||
|
||||
class Meta:
|
||||
constraints = [
|
||||
models.UniqueConstraint(fields=["compute", "uuid"], name="unique_compute_uuid")
|
||||
]
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.compute}/{self.name}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue