[pve-devel] applied: [PATCH pve-manager 3/4] Add a message that deletion a job will take some time.
Dietmar Maurer
dietmar at proxmox.com
Thu Jun 8 09:44:48 CEST 2017
applied this slightly improved version:
----
diff --git a/PVE/API2/ReplicationConfig.pm b/PVE/API2/ReplicationConfig.pm
index 21c70a8f..16245d4b 100644
--- a/PVE/API2/ReplicationConfig.pm
+++ b/PVE/API2/ReplicationConfig.pm
@@ -195,6 +195,8 @@ __PACKAGE__->register_method ({
code => sub {
my ($param) = @_;
+ my $rpcenv = PVE::RPCEnvironment::get();
+
my $code = sub {
my $cfg = PVE::ReplicationConfig->new();
@@ -211,6 +213,9 @@ __PACKAGE__->register_method ({
$jobcfg->{remove_job} = 'local';
}
+ warn "Replication job removal is a background task and will take some
time.\n"
+ if $rpcenv->{type} eq 'cli';
+
$cfg->write();
};
More information about the pve-devel
mailing list