Project

General

Profile

Actions

Bug #23440

closed

API - Removing puppetclasses can't use friendly

Added by Iain Walmsley almost 6 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
API
Target version:
-
Difficulty:
trivial
Triaged:
No
Fixed in Releases:
Found in Releases:

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

Actions #1

Updated by Iain Walmsley almost 6 years ago

Changed release - affects nightly

Actions #2

Updated by The Foreman Bot almost 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/5520 added
Actions #3

Updated by The Foreman Bot over 4 years ago

  • Fixed in Releases 1.24.0 added
Actions #4

Updated by Iain Walmsley over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF