[pve-devel] [PATCH manager] api: backup: correclty use uuid package

Dominik Csapak d.csapak at proxmox.com
Wed Nov 17 14:52:51 CET 2021


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 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..9bddb4d1 100644
--- a/PVE/API2/Backup.pm
+++ b/PVE/API2/Backup.pm
@@ -195,7 +195,7 @@ __PACKAGE__->register_method({
 	$param->{enabled} = 1 if !defined($param->{enabled});
 
 	# autogenerate id for api compatibility FIXME remove with 8.0
-	my $id = extract_param($param, 'id') // uuid();
+	my $id = extract_param($param, 'id') // UUID::uuid();
 
 	cfs_lock_file('jobs.cfg', undef, sub {
 	    my $data = cfs_read_file('jobs.cfg');
-- 
2.30.2





More information about the pve-devel mailing list