[pve-devel] [PATCH manager] fix use statement

Fabian Grünbichler f.gruenbichler at proxmox.com
Wed Nov 17 13:52:19 CET 2021


else this happens:

"Use of inherited AUTOLOAD for non-method PVE::API2::Backup::uuid() is
no longer allowed at /usr/share/perl5/PVE/API2/Backup.pm line 198.
(500)"

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
https://forum.proxmox.com/threads/different-backup-retentions.99869/#post-430885

 PVE/API2/Backup.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/API2/Backup.pm b/PVE/API2/Backup.pm
index 428f4cb3..e7ebeea5 100644
--- a/PVE/API2/Backup.pm
+++ b/PVE/API2/Backup.pm
@@ -3,7 +3,7 @@ package PVE::API2::Backup;
 use strict;
 use warnings;
 use Digest::SHA;
-use UUID;
+use UUID qw(uuid);
 
 use PVE::SafeSyslog;
 use PVE::Tools qw(extract_param);
-- 
2.30.2






More information about the pve-devel mailing list