5
0
mirror of git://git.proxmox.com/git/pve-guest-common.git synced 2025-03-11 16:58:18 +03:00

replication config: code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-04-27 09:58:41 +02:00
parent e6e1550049
commit 3bf8e49a94

View File

@ -16,9 +16,11 @@ use base qw(PVE::SectionConfig);
my $replication_cfg_filename = 'replication.cfg';
cfs_register_file($replication_cfg_filename,
sub { __PACKAGE__->parse_config(@_); },
sub { __PACKAGE__->write_config(@_); });
cfs_register_file(
$replication_cfg_filename,
sub { __PACKAGE__->parse_config(@_); },
sub { __PACKAGE__->write_config(@_); },
);
PVE::JSONSchema::register_format('pve-replication-job-id',
\&parse_replication_job_id);
@ -61,7 +63,9 @@ my $defaultData = {
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.",
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,