[pve-devel] [PATCH V2 pve-network 1/6] restrict zone name to 8 characters
Alexandre Derumier
aderumier at odiso.com
Tue May 19 18:37:40 CEST 2020
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/Network/SDN/Zones/Plugin.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/Network/SDN/Zones/Plugin.pm b/PVE/Network/SDN/Zones/Plugin.pm
index 2335d9e..9ea7a50 100644
--- a/PVE/Network/SDN/Zones/Plugin.pm
+++ b/PVE/Network/SDN/Zones/Plugin.pm
@@ -29,7 +29,7 @@ sub parse_sdn_zone_id {
return undef if $noerr;
die "zone ID '$id' contains illegal characters\n";
}
- die "zone ID '$id' can't be more length than 10 characters\n" if length($id) > 10;
+ die "zone ID '$id' can't be more length than 8 characters\n" if length($id) > 8;
return $id;
}
--
2.20.1
More information about the pve-devel
mailing list