]> git.proxmox.com Git - qemu-server.git/commitdiff
remove 'replicate' configuration - we will store that in another file
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 9 May 2017 14:45:52 +0000 (16:45 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 31 May 2017 05:53:57 +0000 (07:53 +0200)
PVE/API2/Qemu.pm
PVE/QemuServer.pm

index 41ffad5331a24aa055c345313a0227ee09ed9c5c..3342458929cff5176d7ad734854bdd112a94d16f 100644 (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};
                }
index 99e58977c03c801ffdb57a05e458132d27e37082..6ce5910f2a4e6b556c214149a6b1e5ba7ef20681 100644 (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,
     },