remove 'replicate' configuration - we will store that in another file

This commit is contained in:
Dietmar Maurer 2017-05-09 16:45:52 +02:00
parent 6318daca96
commit 3ab7663a91
2 changed files with 1 additions and 8 deletions

View File

@ -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};
}

View File

@ -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,
},