Merge ~pwlars/testflinger-agent:fix-empty-sections-exception into testflinger-agent:master
Proposed by
Paul Larson
Status: | Merged |
---|---|
Approved by: | Paul Larson |
Approved revision: | eaf55c25242a8e5c49008576f676adc3b212d609 |
Merged at revision: | 7eb7331bbc6b4b16c38ecb38c1a9cdf406f1c934 |
Proposed branch: | ~pwlars/testflinger-agent:fix-empty-sections-exception |
Merge into: | testflinger-agent:master |
Diff against target: |
99 lines (+24/-10) 3 files modified
testflinger_agent/job.py (+3/-3) testflinger_agent/tests/test_agent.py (+7/-7) testflinger_agent/tests/test_job.py (+14/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sheila Miguez (community) | Approve | ||
Review via email:
|
Description of the change
We already support the idea of skipping a section if it's missing (ex. if you want to skip provision, simply leave out the provisioning section). however I also noticed today that if you leave out the data in the provisioning section, it gives you a pretty confusing error.
Now, if it's present but doesn't have anything in it, it should result in the same sort of non-fatal message that happens when the section is missing completely. However it will still try to do the other parts of the job that it can.
To post a comment you must log in.
lgtm