]> git.proxmox.com Git - pve-storage.git/commitdiff
pbs: free image: explicitly return undef
authorFabian Ebner <f.ebner@proxmox.com>
Tue, 4 May 2021 09:52:53 +0000 (11:52 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 21 Jun 2021 07:38:03 +0000 (09:38 +0200)
Storage.pm's vdisk_free interprets truthy return values as worker subs, so be
explicit about returning undef here. Not an issue at the moment, because
run_client_command already returns undef, but better be safe than sorry.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/Storage/PBSPlugin.pm

index ae45a1ad09c26802f2a08cb94ef5041838fa6dc6..68c702aa1f466b2eb3b2253494a3f11ec2ceacc1 100644 (file)
@@ -595,6 +595,8 @@ sub free_image {
     my ($vtype, $name, $vmid) = $class->parse_volname($volname);
 
     run_client_cmd($scfg, $storeid, "forget", [ $name ], 1);
+
+    return;
 }