Actions
Bug #23440
closedAPI - Removing puppetclasses can't use friendly
Difficulty:
trivial
Triaged:
No
Pull request:
Description
With #22747 there's now validation on addition of Puppeclasses with the API which also allows use of friendly which is incredibly useful. On deletion however this was omitted (also means you aren't able to ascertain with the API response that you have, in-fact, tried to delete a valid puppetclass).
Should be able to do something like this;
-X DELETE https://foreman/api/v2/hosts/testhost/puppetclass_ids/ntp
or, indeed
-X DELETE https://foreman/api/v2/hosts/testhost/puppetclass_ids/invalid_class
response = Error
Updated by The Foreman Bot over 6 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/5520 added
Updated by Iain Walmsley over 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset 0b19e8841163bafd7e4748eb98cf69d94b418a2c.
Actions