]> git.proxmox.com Git - pve-guest-common.git/commitdiff
replication config: code cleanup
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 27 Apr 2022 07:58:41 +0000 (09:58 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 27 Apr 2022 07:58:41 +0000 (09:58 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/ReplicationConfig.pm

index 78f55bb91c57e9074a6174067f894556abc28a00..dedfd8f792f63684bad407318c993474dc9949a4 100644 (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,