ceph / chacra

A binary/file REST API to aid in multi-distro|arch|release management
9 stars 18 forks source link

Safer json encoding #178

Closed alfredodeza closed 8 years ago

alfredodeza commented 8 years ago

This fixes the issue where shaman would not get the requests for the various different states of a repo.

Caused by a serialization mishap using requests automatic one. The Repo model has a datetime field that would cause it to break.

Adds tests (woo hoo tests!) and try/except block in the task to capture failure and report it with logging.