]> git.proxmox.com Git - pve-manager.git/commitdiff
vdzump: whitespace/extra-lines clean up
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Jun 2021 12:35:25 +0000 (14:35 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Jun 2021 12:35:25 +0000 (14:35 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/VZDump.pm
PVE/VZDump.pm

index 10847260ba08d48ab013718f069c9da0def855a7..2c0df4c37e127e9883330c6a4846b675c63502e5 100644 (file)
@@ -25,13 +25,15 @@ __PACKAGE__->register_method ({
     method => 'POST',
     description => "Create backup.",
     permissions => {
-       description => "The user needs 'VM.Backup' permissions on any VM, and 'Datastore.AllocateSpace' on the backup storage. The 'maxfiles', 'prune-backups', 'tmpdir', 'dumpdir', 'script', 'bwlimit' and 'ionice' parameters are restricted to the 'root\@pam' user.",
+       description => "The user needs 'VM.Backup' permissions on any VM, and 'Datastore.AllocateSpace'"
+           ." on the backup storage. The 'maxfiles', 'prune-backups', 'tmpdir', 'dumpdir', 'script',"
+           ." 'bwlimit' and 'ionice' parameters are restricted to the 'root\@pam' user.",
        user => 'all',
     },
     protected => 1,
     proxyto => 'node',
     parameters => {
-       additionalProperties => 0,
+       additionalProperties => 0,
        properties => PVE::VZDump::Common::json_config_properties({
            stdout => {
                type => 'boolean',
index 05644e1a617a33d08b8f4350212a72f7c50d51c0..46cb9e6dc7ee2889f95cdface2019e995c4be476 100644 (file)
@@ -885,14 +885,10 @@ sub exec_backup_task {
        $task->{mode} = $mode;
 
        debugmsg ('info', "backup mode: $mode", $logfd);
-
-       debugmsg ('info', "bandwidth limit: $opts->{bwlimit} KB/s", $logfd)
-           if $opts->{bwlimit};
-
+       debugmsg ('info', "bandwidth limit: $opts->{bwlimit} KB/s", $logfd)  if $opts->{bwlimit};
        debugmsg ('info', "ionice priority: $opts->{ionice}", $logfd);
 
        if ($mode eq 'stop') {
-
            $plugin->prepare ($task, $vmid, $mode);
 
            $self->run_hook_script ('backup-start', $task, $logfd);
@@ -907,7 +903,6 @@ sub exec_backup_task {
 
 
        } elsif ($mode eq 'suspend') {
-
            $plugin->prepare ($task, $vmid, $mode);
 
            $self->run_hook_script ('backup-start', $task, $logfd);
@@ -936,7 +931,6 @@ sub exec_backup_task {
            }
 
        } elsif ($mode eq 'snapshot') {
-
            $self->run_hook_script ('backup-start', $task, $logfd);
 
            my $snapshot_count = $task->{snapshot_count} || 0;