fix keyword

This commit is contained in:
Fredrik Eriksson 2023-05-21 08:35:25 +02:00
parent 39a61aeddd
commit 3ac30e5539
Signed by: feffe
GPG Key ID: CD5A131FADFA3968

View File

@ -196,7 +196,7 @@ def pkg_upgrade():
log.warning(line)
if do_grub:
keep_kernels = conf.getint('default', 'keep_kernels', default=4)
keep_kernels = conf.getint('default', 'keep_kernels', fallback=4)
if keep_kernels < 1:
log.error('keep_kernels cannot be less than one; falling back to default')
keep_kernels = 4