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