mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-05 03:08:55 +00:00
vdzump: whitespace/extra-lines clean up
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
6407435786
commit
ff119724ee
@ -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',
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user