fix #1252: rbd: delete snapshots when using krbd

This commit is contained in:
Wolfgang Bumiller
2017-01-17 10:32:23 +01:00
parent a4aee43380
commit e438d0940f

View File

@ -635,7 +635,7 @@ sub volume_snapshot_rollback {
sub volume_snapshot_delete {
my ($class, $scfg, $storeid, $volname, $snap, $running) = @_;
return 1 if $running;
return 1 if $running && !$scfg->{krbd};
$class->deactivate_volume($storeid, $scfg, $volname, $snap, {});