Interfaces page should not consider json response {"result": false} as success
When updating of network interfaces fails for some reason, it is possible in certain conditions that response from flask API has HTTP status code 200 and payload {"result": false}
.
However reforis UI considers this as success, i.e. show green banner.
So we could fix this by:
- a) return only successful response as JSON from flask API or raise ApiError.
- b) return failure as JSON
{"result": false}
, but set appropriate HTTP status code