]> git.proxmox.com Git - pmg-api.git/commitdiff
api: node: fix missing import for PVE::Tools
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 26 Feb 2024 20:29:57 +0000 (21:29 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 27 Feb 2024 15:07:39 +0000 (16:07 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PMG/API2/Nodes.pm

index 304c2cffc22fa71a55ccd2ec5e916ab3ce81a228..5f5e362d73dc9ee3531f2d6b00d2ef43ea280569 100644 (file)
@@ -13,6 +13,7 @@ use PVE::JSONSchema qw(get_standard_option);
 use PMG::RESTEnvironment;
 use PVE::SafeSyslog;
 use PVE::ProcFSTools;
+use PVE::Tools;
 
 use PMG::pmgcfg;
 use PMG::Ticket;
@@ -705,7 +706,7 @@ my sub get_boot_mode_info {
     my $efi_var = "/sys/firmware/efi/efivars/SecureBoot-8be4df61-93ca-11d2-aa0d-00e098032b8c";
 
     if ($is_efi_booted && -e $efi_var) {
-       my $efi_var_sec_boot_entry = eval { file_get_contents($efi_var) };
+       my $efi_var_sec_boot_entry = eval { PVE::Tools::file_get_contents($efi_var) };
        if ($@) {
            warn "Failed to read secure boot state: $@\n";
        } else {