]> git.proxmox.com Git - pve-storage.git/commitdiff
rbd plugin: free image: use actual command in error message
authorFabian Ebner <f.ebner@proxmox.com>
Wed, 27 Oct 2021 12:46:20 +0000 (14:46 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 27 Oct 2021 15:03:14 +0000 (17:03 +0200)
For linked clones, the base name was included, which is confusing.

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

index 4bd43d5c0c115050ba027475a040f551065d66a5..613d32b018d28479d0bea7a5f290414b143b211e 100644 (file)
@@ -540,10 +540,10 @@ sub free_image {
     $class->deactivate_volume($storeid, $scfg, $volname);
 
     my $cmd = $rbd_cmd->($scfg, $storeid, 'snap', 'purge',  $name);
-    run_rbd_command($cmd, errmsg => "rbd snap purge '$volname' error");
+    run_rbd_command($cmd, errmsg => "rbd snap purge '$name' error");
 
     $cmd = $rbd_cmd->($scfg, $storeid, 'rm', $name);
-    run_rbd_command($cmd, errmsg => "rbd rm '$volname' error");
+    run_rbd_command($cmd, errmsg => "rbd rm '$name' error");
 
     return undef;
 }