Implement host disassociation command
We are missing this bit completely from CLI.
From our mailing list:
Anyone know of a command line option in hammer to disassociate a host from
its compute resource? It's easily done through the GUI however I am
attempting to do this as a part of a larger workflow built in something
like Ansible and need to be able to disassociate via CLI.
#2 Updated by Dominic Cleal over 2 years ago
Compute resource disassociation is different to the case in #13596. Environments are a single attribute on a host/host group and it should be possible to set them to null, while compute resource disassociation is performed by a specific action (PUT /api/v2/hosts/:id/disassociate).
- Status changed from Ready For Testing to Closed
Applied in changeset hammer-cli-foreman|3c5d39446046e0bbd87d93c98850be71284dee8f.