X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=PVE%2FAPI2%2FQemu.pm;h=f5ffb9bdad6e662333b72628d1b7fe876bd6cb43;hb=0342b45bee0e813e6b2864dcd7cecdd63194d517;hp=091f9e10fc110918a8a3605a0a232659e9814ffa;hpb=8557d01f755235cb7f9454423090f49a359e42f0;p=qemu-server.git diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 091f9e10..f5ffb9bd 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -24,7 +24,6 @@ use PVE::INotify; use PVE::Network; use PVE::Firewall; use PVE::API2::Firewall::VM; -use PVE::ReplicationTools; BEGIN { if (!$ENV{PVE_GENERATING_DOCS}) { @@ -1052,8 +1051,8 @@ my $update_vm_api = sub { &$create_disks($rpcenv, $authuser, $conf->{pending}, $storecfg, $vmid, undef, {$opt => $param->{$opt}}); } elsif ($opt eq "replicate") { - die "Not all volumes are syncable, please check your config\n" - if !PVE::ReplicationTools::check_guest_volumes_syncable($conf, 'qemu'); + # check if all volumes have replicate feature + PVE::QemuServer::get_replicatable_volumes($storecfg, $conf); my $repl = PVE::JSONSchema::check_format('pve-replicate', $param->{opt}); PVE::Cluster::check_node_exists($repl->{target}); $conf->{$opt} = $param->{$opt};