Improve Proxmox authentication timeout diagnostics
This commit is contained in:
1 parent
c2276c2774
commit
20e6487030
6 files changed
+28
-5
No files matched your search
@@ -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.")})
|
||||
|
||||
|
||||
Reference in new issue
Block a user