The helpers were split out from the original 'sendmail' function when
migrating to the new notification system. They are not needed anywhere
else and can thus be private.
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
return $res;
}
-sub read_backup_task_logs {
+my sub read_backup_task_logs {
my ($task_list) = @_;
my $task_logs = "";
return $task_logs;
}
-sub build_guest_table {
+my sub build_guest_table {
my ($task_list) = @_;
my $table = {
return $table;
}
-sub sanitize_task_list {
+my sub sanitize_task_list {
my ($task_list) = @_;
for my $task (@$task_list) {
chomp $task->{msg} if $task->{msg};
return ($error_count, $total_size);
}
-sub get_hostname {
+my sub get_hostname {
my $hostname = `hostname -f` || PVE::INotify::nodename();
chomp $hostname;
return $hostname;