Empty line in /etc/os-release breaks Ubuntu Pro #2526
Labels
bug
Something isn't working
triage
Add this label to issues that should be triaged and prioretized in the next planning call
unconfirmed
Kairos version:
CPU architecture, OS, and Version:
Describe the bug
The fact that there is an empty line in
/etc/os-release
unfortunately breaks Ubuntu Pro, as it uses the following Python code:It doesn't skip empty lines and thus the function fails at
key, value = line.split("=", 1)
due to there not being 2 values.To Reproduce
Run
pro attach <valid-pro-key>
on a Kairos 3.0.x imageExpected behavior
If
/etc/os-release
contains no empty lines, things work fine. I currently use this as a workaround:Logs
Additional context
The text was updated successfully, but these errors were encountered: