plugin: parse_name_dir: drop deprecation warning
this gets printed very often if such a volume exists - e.g. adding such a volume to a config with `qm set` prints it 10 times.. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> Tested-by: Shannon Sterz <s.sterz@proxmox.com> Link: https://lore.proxmox.com/20250731111519.931104-5-f.gruenbichler@proxmox.com
This commit is contained in:
committed by
Thomas Lamprecht
parent
6dbeba59da
commit
7513e21d74
@ -718,7 +718,6 @@ sub parse_name_dir {
|
|||||||
} elsif ($name =~ m!^snap-.*\.qcow2$!) {
|
} elsif ($name =~ m!^snap-.*\.qcow2$!) {
|
||||||
die "'$name' is a snapshot filename, not a volume!\n";
|
die "'$name' is a snapshot filename, not a volume!\n";
|
||||||
} elsif ($name =~ m!^((base-)?[^/\s]+\.(raw|qcow2|vmdk|subvol))$!) {
|
} elsif ($name =~ m!^((base-)?[^/\s]+\.(raw|qcow2|vmdk|subvol))$!) {
|
||||||
warn "this volume name `$name` is deprecated, please use (base-/vm-/subvol-)-NNN- as prefix\n";
|
|
||||||
return ($1, $3, $2); # (name ,format, isBase)
|
return ($1, $3, $2); # (name ,format, isBase)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user