Signed-off-by: Fiona Ebner <f.eb...@proxmox.com> --- src/PVE/Storage/Plugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PVE/Storage/Plugin.pm b/src/PVE/Storage/Plugin.pm index 79f6f08..dfdab16 100644 --- a/src/PVE/Storage/Plugin.pm +++ b/src/PVE/Storage/Plugin.pm @@ -346,7 +346,7 @@ PVE::JSONSchema::register_format('pve-storage-format', \&verify_format); sub verify_format { my ($fmt, $noerr) = @_; - if ($fmt !~ m/(raw|qcow2|vmdk|subvol)/) { + if ($fmt !~ m/^(raw|qcow2|vmdk|subvol)$/) { return undef if $noerr; die "invalid format '$fmt'\n"; } -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel