Bug #23440
API - 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
Associated revisions
History
#2
Updated by The Foreman Bot almost 5 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/5520 added
#3
Updated by The Foreman Bot over 3 years ago
- Fixed in Releases 1.24.0 added
#4
Updated by Iain Walmsley over 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset 0b19e8841163bafd7e4748eb98cf69d94b418a2c.
fixes #23440 - removing pclasses with API can't use friendly