mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-07-05 11:32:47 +00:00
is_template: always return a defined value
use 0 instead of undef
This commit is contained in:
parent
4d8c851bcc
commit
3e2bbcdc0e
@ -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 1 if $baseimagecount == $totalvolumecount; #full template
|
||||||
return 2 if $baseimagecount < $totalvolumecount; #semi-template
|
return 2 if $baseimagecount < $totalvolumecount; #semi-template
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
Loading…
Reference in New Issue
Block a user