From 3ab7663a918ae831b5ddca068c9f0568a2799947 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 9 May 2017 16:45:52 +0200 Subject: [PATCH] remove 'replicate' configuration - we will store that in another file --- PVE/API2/Qemu.pm | 6 ------ PVE/QemuServer.pm | 3 +-- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 41ffad53..33424589 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -1053,12 +1053,6 @@ my $update_vm_api = sub { if defined($conf->{pending}->{$opt}); &$create_disks($rpcenv, $authuser, $conf->{pending}, $storecfg, $vmid, undef, {$opt => $param->{$opt}}); - } elsif ($opt eq "replicate") { - # check if all volumes have replicate feature - PVE::QemuConfig->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}; } else { $conf->{pending}->{$opt} = $param->{$opt}; } diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 99e58977..6ce5910f 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -491,7 +491,6 @@ EODESCR maxLength => 256, optional => 1, }, - replicate => get_standard_option('pve-replicate'), protection => { optional => 1, type => 'boolean', @@ -750,7 +749,7 @@ my %drivedesc_base = ( }, replicate => { type => 'boolean', - description => 'Will include this drive to an storage replical job.', + description => 'Whether the drive should considered for replication jobs.', optional => 1, default => 1, },