plugorgau / eventstreamr

Single and multi room audio visual stream management.
GNU Affero General Public License v3.0
6 stars 12 forks source link

record status missing type if not writable #44

Closed jason-nicholls closed 10 years ago

jason-nicholls commented 10 years ago

The status being returned by the API for record is missing the type when there is an issue. e.g. the USB drive isn't plugged in because the unmounted location is not writable to the AV user (on purpose).

I get back the following - which is all good and has a good status, just the "type" attribute is missing. When it's working the "type" attribute is present, so it's only missing when something has gone wrong.

"record": {
    "running": "0",
    "state": "hard",
    "status": "not_writable"
}
techman83 commented 10 years ago

added.