5
0
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:
Dietmar Maurer
2013-02-15 08:12:33 +01:00
parent 4d8c851bcc
commit 3e2bbcdc0e

View File

@ -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;