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:
committed by
Thomas Lamprecht
parent
b206f7c471
commit
85043c0193
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user