rbd plugin: free image: use actual command in error message

For linked clones, the base name was included, which is confusing.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner
2021-10-27 14:46:20 +02:00
committed by Thomas Lamprecht
parent b206f7c471
commit 85043c0193

View 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;
}