]> git.proxmox.com Git - pve-container.git/commitdiff
remove 'replicate' configuration - we will store that in another file
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 23 May 2017 15:35:35 +0000 (17:35 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 29 May 2017 09:34:43 +0000 (11:34 +0200)
src/PVE/LXC/Config.pm

index 547e7b515a9d927a9bc67c20d30045d9608cb73f..8430b0749f48602211c863e34b437520510b85b5 100644 (file)
@@ -390,7 +390,6 @@ my $confdesc = {
        type => 'integer',
        minimum => 0,
     },
-    replicate => get_standard_option('pve-replicate'),
     cmode => {
        optional => 1,
        description => "Console mode. By default, the console command tries to open a connection to one of the available tty devices. By setting cmode to 'console' it tries to attach to /dev/console instead. If you set cmode to 'shell', it simply invokes a shell inside the container (no login).",
@@ -832,8 +831,6 @@ sub update_pct_config {
                }
            } elsif ($opt eq 'unprivileged') {
                die "unable to delete read-only option: '$opt'\n";
-           }  elsif ($opt eq "replicate") {
-               delete $conf->{$opt};
            } else {
                die "implement me (delete: $opt)"
            }
@@ -972,19 +969,10 @@ sub update_pct_config {
        } elsif ($opt eq 'ostype') {
            next if $hotplug_error->($opt);
            $conf->{$opt} = $value;
-       } elsif ($opt eq "replicate") {
-           my $repl = PVE::JSONSchema::check_format('pve-replicate', $value);
-           PVE::Cluster::check_node_exists($repl->{target});
-           $conf->{$opt} = $value;
        } else {
            die "implement me: $opt";
        }
 
-       if ($conf->{replicate}) {
-           # check replicate feature on all mountpoints
-           PVE::LXC::Config->get_replicatable_volumes($storecfg, $conf);
-       }
-
        PVE::LXC::Config->write_config($vmid, $conf) if $running;
     }