mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-07 14:51:37 +00:00
vzdump: indentation and whitespace fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
94009776df
commit
1353489ed2
@ -339,24 +339,29 @@ sub sendmail {
|
|||||||
$html .= "<tr><td>VMID<td>NAME<td>STATUS<td>TIME<td>SIZE<td>FILENAME</tr>\n";
|
$html .= "<tr><td>VMID<td>NAME<td>STATUS<td>TIME<td>SIZE<td>FILENAME</tr>\n";
|
||||||
|
|
||||||
my $ssize = 0;
|
my $ssize = 0;
|
||||||
|
|
||||||
foreach my $task (@$tasklist) {
|
foreach my $task (@$tasklist) {
|
||||||
my $vmid = $task->{vmid};
|
my $vmid = $task->{vmid};
|
||||||
my $name = $task->{hostname};
|
my $name = $task->{hostname};
|
||||||
|
|
||||||
if ($task->{state} eq 'ok') {
|
if ($task->{state} eq 'ok') {
|
||||||
|
|
||||||
$ssize += $task->{size};
|
$ssize += $task->{size};
|
||||||
|
|
||||||
$html .= sprintf ("<tr><td>%s<td>%s<td>OK<td>%s<td align=right>%s<td>%s</tr>\n",
|
$html .= sprintf (
|
||||||
$vmid, $name,
|
"<tr><td>%s<td>%s<td>OK<td>%s<td align=right>%s<td>%s</tr>\n",
|
||||||
format_time($task->{backuptime}),
|
$vmid,
|
||||||
format_size ($task->{size}),
|
$name,
|
||||||
escape_html ($task->{target}));
|
format_time($task->{backuptime}),
|
||||||
|
format_size ($task->{size}),
|
||||||
|
escape_html ($task->{target}),
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
$html .= sprintf ("<tr><td>%s<td>%s<td><font color=red>FAILED<td>%s<td colspan=2>%s</tr>\n",
|
$html .= sprintf (
|
||||||
$vmid, $name, format_time($task->{backuptime}),
|
"<tr><td>%s<td>%s<td><font color=red>FAILED<td>%s<td colspan=2>%s</tr>\n",
|
||||||
escape_html ($task->{msg}));
|
$vmid,
|
||||||
|
$name,
|
||||||
|
format_time($task->{backuptime}),
|
||||||
|
escape_html ($task->{msg}),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -476,14 +481,15 @@ sub new {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($opts->{stdexcludes}) {
|
if ($opts->{stdexcludes}) {
|
||||||
push @$findexcl, '/tmp/?*',
|
push @$findexcl,
|
||||||
'/var/tmp/?*',
|
'/tmp/?*',
|
||||||
'/var/run/?*.pid';
|
'/var/tmp/?*',
|
||||||
|
'/var/run/?*.pid',
|
||||||
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach my $p (@plugins) {
|
foreach my $p (@plugins) {
|
||||||
|
my $pd = $p->new($self);
|
||||||
my $pd = $p->new ($self);
|
|
||||||
|
|
||||||
push @{$self->{plugins}}, $pd;
|
push @{$self->{plugins}}, $pd;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user