sheepdog : volume_snapshot_delete : parse_volname
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
b8f4f5be20
commit
d99eee9399
@ -417,8 +417,11 @@ sub volume_snapshot_delete {
|
||||
|
||||
return 1 if $running;
|
||||
|
||||
my $cmd = &$collie_cmd($scfg, 'vdi', 'delete', '-s', $snap, $volname);
|
||||
run_command($cmd, errmsg => "sheepdog snapshot $volname' error");
|
||||
my ($vtype, $name, $vmid, $basename, $basevmid, $isBase) =
|
||||
$class->parse_volname($volname);
|
||||
|
||||
my $cmd = &$collie_cmd($scfg, 'vdi', 'delete', '-s', $snap, $name);
|
||||
run_command($cmd, errmsg => "sheepdog snapshot $name' error");
|
||||
|
||||
return undef;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user