mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-07 23:29:09 +00:00
remove 'replicate' configuration - we will store that in another file
This commit is contained in:
parent
6318daca96
commit
3ab7663a91
@ -1053,12 +1053,6 @@ my $update_vm_api = sub {
|
|||||||
if defined($conf->{pending}->{$opt});
|
if defined($conf->{pending}->{$opt});
|
||||||
|
|
||||||
&$create_disks($rpcenv, $authuser, $conf->{pending}, $storecfg, $vmid, undef, {$opt => $param->{$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 {
|
} else {
|
||||||
$conf->{pending}->{$opt} = $param->{$opt};
|
$conf->{pending}->{$opt} = $param->{$opt};
|
||||||
}
|
}
|
||||||
|
@ -491,7 +491,6 @@ EODESCR
|
|||||||
maxLength => 256,
|
maxLength => 256,
|
||||||
optional => 1,
|
optional => 1,
|
||||||
},
|
},
|
||||||
replicate => get_standard_option('pve-replicate'),
|
|
||||||
protection => {
|
protection => {
|
||||||
optional => 1,
|
optional => 1,
|
||||||
type => 'boolean',
|
type => 'boolean',
|
||||||
@ -750,7 +749,7 @@ my %drivedesc_base = (
|
|||||||
},
|
},
|
||||||
replicate => {
|
replicate => {
|
||||||
type => 'boolean',
|
type => 'boolean',
|
||||||
description => 'Will include this drive to an storage replical job.',
|
description => 'Whether the drive should considered for replication jobs.',
|
||||||
optional => 1,
|
optional => 1,
|
||||||
default => 1,
|
default => 1,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user