Setting host build flag via API doesn't clear facts and reports
|Assigned To:||Dominic Cleal|
|Target version:||Sprint 25|
|Found in release:||Pull request:|
|Velocity based estimate||-|
When setting the build attribute on a host to true from the API (or CLI) doesn't clear facts and reports from the hosts. This differs from the UI as it calls Host::Managed#setBuild, while the API is just setting the attribute.
The clear facts/reports might be best moved to the model when the attribute is changed, and the setBuild action on HostsController could just update the attribute.