From 151f1335d050b6421e364c5cfd000bf349e0d76d Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 30 May 2017 12:31:47 +0200 Subject: [PATCH] PVE/ReplicationConfig.pm: add remove_job property --- PVE/ReplicationConfig.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/PVE/ReplicationConfig.pm b/PVE/ReplicationConfig.pm index 7b437f8..092c497 100644 --- a/PVE/ReplicationConfig.pm +++ b/PVE/ReplicationConfig.pm @@ -41,6 +41,12 @@ my $defaultData = { optional => 1, maxLength => 4096, }, + remove_job => { + description => "Mark the replication job for removal. The job will remove all local replication snapshots. When set to 'full', it also tries to remove replicated volumes on the target. The job then removes itself from the configuration file.", + type => 'string', + enum => ['local', 'full'], + optional => 1, + }, guest => get_standard_option('pve-vmid', { optional => 1, completion => \&PVE::Cluster::complete_vmid }), @@ -205,6 +211,7 @@ sub options { comment => { optional => 1 }, rate => { optional => 1 }, schedule => { optional => 1 }, + remove_job => { optional => 1 }, }; } -- 2.39.2