rbd : volume_snapshot_delete : parse_volname
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
c6ce2cc8ec
commit
c78cb110e7
@ -458,7 +458,9 @@ sub volume_snapshot_delete {
|
||||
|
||||
return 1 if $running;
|
||||
|
||||
my $cmd = &$rbd_cmd($scfg, $storeid, 'snap', 'rm', '--snap', $snap, $volname);
|
||||
my ($vtype, $name, $vmid) = $class->parse_volname($volname);
|
||||
|
||||
my $cmd = &$rbd_cmd($scfg, $storeid, 'snap', 'rm', '--snap', $snap, $name);
|
||||
run_command($cmd, errmsg => "rbd snapshot $volname' error", errfunc => sub {});
|
||||
return undef;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user