]> git.proxmox.com Git - pve-manager.git/commitdiff
vzdump: make helper functions for sending notifications private
authorLukas Wagner <l.wagner@proxmox.com>
Thu, 14 Dec 2023 14:11:54 +0000 (15:11 +0100)
committerFiona Ebner <f.ebner@proxmox.com>
Mon, 29 Jan 2024 09:32:31 +0000 (10:32 +0100)
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>
PVE/VZDump.pm

index 1c81c82ebb752aed43f51877f23414bf15775774..152eb3e5dfb4a99c5c7a41fa4c426973d5393daa 100644 (file)
@@ -318,7 +318,7 @@ sub read_vzdump_defaults {
     return $res;
 }
 
-sub read_backup_task_logs {
+my sub read_backup_task_logs {
     my ($task_list) = @_;
 
     my $task_logs = "";
@@ -345,7 +345,7 @@ sub read_backup_task_logs {
     return $task_logs;
 }
 
-sub build_guest_table {
+my sub build_guest_table {
     my ($task_list) = @_;
 
     my $table = {
@@ -399,7 +399,7 @@ sub build_guest_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};
@@ -427,7 +427,7 @@ my sub aggregate_task_statistics {
     return ($error_count, $total_size);
 }
 
-sub get_hostname {
+my sub get_hostname {
     my $hostname = `hostname -f` || PVE::INotify::nodename();
     chomp $hostname;
     return $hostname;