add check if format is defined to avoid warning
This commit is contained in:
committed by
Dietmar Maurer
parent
d2c0bb589b
commit
4a7d222204
@ -597,7 +597,7 @@ sub free_image {
|
|||||||
|
|
||||||
my $path = $class->filesystem_path($scfg, $volname);
|
my $path = $class->filesystem_path($scfg, $volname);
|
||||||
|
|
||||||
if ($format eq 'subvol') {
|
if (defined($format) && ($format eq 'subvol')) {
|
||||||
File::Path::remove_tree($path);
|
File::Path::remove_tree($path);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user