]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
node_config: followup s/domain/alias
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 25 Jun 2020 08:28:14 +0000 (10:28 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 25 Jun 2020 08:28:14 +0000 (10:28 +0200)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
PVE/NodeConfig.pm

index 017f6b3065f3951f00ec441e7378e240be83641d..07e7077f5d7ff733a5cdb1d7f0987bfda75f2f94 100644 (file)
@@ -26,13 +26,13 @@ PVE::JSONSchema::register_format('pve-acme-domain', sub {
 });
 
 PVE::JSONSchema::register_format('pve-acme-alias', sub {
-    my ($domain, $noerr) = @_;
+    my ($alias, $noerr) = @_;
 
     my $label = qr/[a-z0-9_][a-z0-9_-]*/i;
 
-    return $domain if $domain =~ /^$label(?:\.$label)+$/;
+    return $alias if $alias =~ /^$label(?:\.$label)+$/;
     return undef if $noerr;
-    die "value '$domain' does not look like a valid domain name!\n";
+    die "value '$alias' does not look like a valid alias name!\n";
 });
 
 sub config_file {