The efi-pxeboot test can crash because of an unassigned variable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox Provider - Base |
Fix Released
|
Medium
|
Rod Smith |
Bug Description
See:
https:/
Specifically:
Traceback (most recent call last):
File "/tmp/nest-
sys.
File "/tmp/nest-
boot_entries, boot_order, boot_current = discover_data()
File "/tmp/nest-
return boot_entries, boot_order, boot_current
UnboundLocalError: local variable 'boot_current' referenced before assignment
The exception is tripped on the function's return line. The fix should be easy -- assign all three of the variables the function returns to empty strings before the if/elif/then clauses, to ensure all three have values.
Related branches
- Paul Larson: Approve
-
Diff: 21 lines (+2/-1)1 file modifiedbin/efi-pxeboot (+2/-1)
tags: | added: hwcert-server |
Changed in plainbox-provider-checkbox: | |
assignee: | nobody → Rod Smith (rodsmith) |
importance: | Undecided → Medium |
status: | New → Fix Committed |
Changed in plainbox-provider-checkbox: | |
milestone: | none → 0.46.0 |
Changed in plainbox-provider-checkbox: | |
status: | Fix Committed → Fix Released |