Setting host build flag via API doesn't clear facts and reports
|Triaged:||Fixed in Releases:|
|Bugzilla link:||1114645||Found in Releases:|
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.