PUT /api/v2/host_collections/ do not return 'host_ids' attribute
When updating (PUT) a host collection via the API, the API does not return the host_ids attribute. In addition, if the host_ids are passed in empty, they host collection is not getting updated properly.
This issue is related to http://projects.theforeman.org/issues/14712 ; therefore, refer to it for further details.
fixes #15486: API: include host_ids in update response (PUT)
This commit will ensure the following during an update (PUT):
1. include host_ids in the update response
2. update host_ids to , if an empty list is provided