mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-08-29 17:49:22 +03:00
is_template: always return a defined value
use 0 instead of undef
This commit is contained in:
@ -4472,11 +4472,9 @@ sub is_template {
|
||||
|
||||
});
|
||||
|
||||
return undef if $baseimagecount == 0;
|
||||
|
||||
return 0 if $baseimagecount == 0;
|
||||
return 1 if $baseimagecount == $totalvolumecount; #full template
|
||||
return 2 if $baseimagecount < $totalvolumecount; #semi-template
|
||||
|
||||
}
|
||||
|
||||
1;
|
||||
|
Reference in New Issue
Block a user