Persist.load should try the old file if the current file is empty
Bug #809210 reported by
Thomas Herve
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Client |
Fix Released
|
Medium
|
Thomas Herve |
Bug Description
Right now, there is a simple return if the current file is empty. If we failed to write the content, we won't try to load the old file even if it's valid.
Related branches
lp://qastaging/~therve/landscape-client/load-old-persist-on-empty
- Alberto Donato (community): Approve
- Jerry Seutter (community): Approve
-
Diff: 97 lines (+59/-11)2 files modifiedlandscape/lib/persist.py (+19/-11)
landscape/lib/tests/test_persist.py (+40/-0)
Changed in landscape-client: | |
status: | In Progress → Fix Committed |
tags: |
added: verification-done removed: verification-needed |
Changed in landscape-client: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Just to note that bug #788605 was the original one about this and contains some discussion. It's not marked as a duplicate just yet.