can_run_pve_machine_version: PVE version can really be optional

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-03-05 18:49:06 +01:00
parent 36b0269724
commit 9edb618257

View File

@ -83,7 +83,7 @@ sub get_pve_version {
sub can_run_pve_machine_version {
my ($machine_version, $kvmversion) = @_;
$machine_version =~ m/^(\d+)\.(\d+)(?:\+pve(\d+))$/;
$machine_version =~ m/^(\d+)\.(\d+)(?:\+pve(\d+))?$/;
my $major = $1;
my $minor = $2;
my $pvever = $3;