we use this format for all 'delete' options but we have some options
that have a '-' in the name (e.g. 'sync-defaults-options') that cannot
be deleted if it is not included
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
sub pve_verify_configid {
my ($id, $noerr) = @_;
sub pve_verify_configid {
my ($id, $noerr) = @_;
- if ($id !~ m/^[a-z][a-z0-9_]+$/i) {
+ if ($id !~ m/^[a-z][a-z0-9_-]+$/i) {
return undef if $noerr;
die "invalid configuration ID '$id'\n";
}
return undef if $noerr;
die "invalid configuration ID '$id'\n";
}