allow disks on shared storages on replicated VMs

This commit is contained in:
Wolfgang Bumiller 2017-06-27 15:00:06 +02:00 committed by Dietmar Maurer
parent 17677004cc
commit 9b1396edd2

View File

@ -972,6 +972,8 @@ my $update_vm_api = sub {
$format = (PVE::Storage::parse_volname($storecfg, $volid))[6];
}
return if PVE::Storage::storage_can_replicate($storecfg, $storeid, $format);
my $scfg = PVE::Storage::storage_config($storecfg, $storeid);
return if $scfg->{shared};
die "cannot add non-replicatable volume to a replicated VM\n";
};