← Back to team overview

curtin-dev team mailing list archive

[Merge] ~sbykov/curtin:LP1895021 into curtin:master

 

The proposal to merge ~sbykov/curtin:LP1895021 into curtin:master has been updated.

Commit message changed to:

udevadm_info should use maxsplit=1 instead of maxsplit=2

In udevadm_info the below code is called to split output lines:
    key, value = line.split('=', 2)

It can lead to unhandled exception if there are more than one
equal sign in the string as split will return array of three
or more elements. The correct way to get only two elements is
to use maxsplit=1:
    key, value = line.split('=', 1)

LP: #1895021

For more details, see:
https://code.launchpad.net/~sbykov/curtin/+git/curtin/+merge/390527
-- 
Your team curtin developers is requested to review the proposed merge of ~sbykov/curtin:LP1895021 into curtin:master.


References