Merge lp://staging/~abentley/ci-director/omit-missing into lp://staging/ci-director

Proposed by Aaron Bentley
Status: Merged
Merged at revision: 172
Proposed branch: lp://staging/~abentley/ci-director/omit-missing
Merge into: lp://staging/ci-director
Diff against target: 46 lines (+26/-1)
2 files modified
cidirector/tests/test_update_outcome.py (+22/-0)
cidirector/update_outcome.py (+4/-1)
To merge this branch: bzr merge lp://staging/~abentley/ci-director/omit-missing
Reviewer Review Type Date Requested Status
Curtis Hovey (community) code Approve
Review via email: mp+297530@code.staging.launchpad.net

Commit message

Omit missing days instead of setting to None.

Description of the change

This branch fixes a bug in load_cloud_health.

The results of load_cloud_health are supposed to be a dictionary of dictionaries, where every sub-dictionary describes a particular job. But if no data exists for a given day, the result is a dictionary where its key is set to None instead of a dictionary.

This branch fixes it to omit missing days from the dictionary.

To post a comment you must log in.
Revision history for this message
Curtis Hovey (sinzui) wrote :

Thank you.

review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches