Project

General

Profile

Bug #23440

API - Removing puppetclasses can't use friendly

Added by Iain Walmsley almost 5 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
API
Target version:
-
Difficulty:
trivial
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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

Revision 0b19e884 (diff)
Added by Iain Walmsley over 3 years ago

fixes #23440 - removing pclasses with API can't use friendly

History

#1 Updated by Iain Walmsley almost 5 years ago

Changed release - affects nightly

#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

Also available in: Atom PDF