Improve Proxmox authentication timeout diagnostics

This commit is contained in:
2026-07-10 11:20:28 +02:00
parent c2276c2774
commit 20e6487030
6 changed files with 28 additions and 5 deletions
+2
View File
@@ -241,6 +241,8 @@ class VCenterEndpoint(JobsMixin, NetBoxModel):
raise ValidationError({"auth_method": _("VMware endpoints currently support username/password authentication only.")})
if self.provider == EndpointProviderChoices.PROVIDER_PROXMOX:
if "@" not in self.username:
raise ValidationError({"username": _("Proxmox usernames must include a realm, e.g. root@pam or user@pve.")})
if self.auth_method == EndpointAuthMethodChoices.METHOD_API_TOKEN and not self.token_name:
raise ValidationError({"token_name": _("A token name is required for Proxmox API token authentication.")})