mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-01 16:36:06 +00:00
fix(instances): a VM name of any length libvirt takes is kept
libvirt names a VM by its <name>.xml file, so a name can have up to 251 bytes. The panel's VM, removed-VM and log records held 120 characters: on PostgreSQL one longer name made the host's sync fail and the VM list answer with an error. They now hold 255. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
This commit is contained in:
parent
e83bdcbd44
commit
373760f2c5
8 changed files with 68 additions and 8 deletions
|
|
@ -4,7 +4,7 @@ from django.utils.translation import gettext_lazy as _
|
|||
class Logs(Model):
|
||||
user = CharField(_("user"), max_length=150)
|
||||
host = CharField(_("host"), max_length=255, default="-")
|
||||
instance = CharField(_("instance"), max_length=120)
|
||||
instance = CharField(_("instance"), max_length=255)
|
||||
instance_uuid = CharField(_("instance UUID"), max_length=36, blank=True, default="", db_index=True)
|
||||
message = TextField(_("message"))
|
||||
date = DateTimeField(_("date"), auto_now_add=True, db_index=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue