← Back to team overview

curtin-dev team mailing list archive

[Merge] ~ogayot/curtin:fix-curthooks-no-kernel into curtin:master

 

The proposal to merge ~ogayot/curtin:fix-curthooks-no-kernel into curtin:master has been updated.

Commit message changed to:

curthooks: fix exception when passing 'kernel: null'

When we don't want curthooks to install a kernel, we can pass:

  kernel: null

However, currently, it makes the code raise an exception because we run
.get() on the kernel object even if it is None.

 config.merge_config(mapping, kernel_cfg.get('mapping', {}))
 AttributeError: 'NoneType' object has no attribute 'get'
 'NoneType' object has no attribute 'get'

Fixed by returning gracefully without installing any kernel upon
encountering this configuration.

LP: #2025673

Signed-off-by: Olivier Gayot <olivier.gayot@xxxxxxxxxxxxx>

For more details, see:
https://code.launchpad.net/~ogayot/curtin/+git/curtin/+merge/446197
-- 
Your team curtin developers is subscribed to branch curtin:master.



References