Feature #20966

Do not throw exception on API power requests for hosts that does not support them.

Added by Shimon Shtein 10 months ago. Updated 8 days ago.

Status:Closed
Priority:Normal
Assignee:Shimon Shtein
Category:-
Target version:1.17.0
Difficulty: Team Backlog:
Triaged: Fixed in Releases:
Bugzilla link:1387202 Found in Releases:
Pull request:https://github.com/theforeman/foreman/pull/4852

Description

Instead of exception, return 4XX status with a message that indicates that the host does not support power operations.

Associated revisions

Revision 08912c32
Added by Shimon Shtein 10 months ago

Fixes #20966 - Added fast return to host power api

If the host does not support power actions (no BMC and the VM
does not support it - return `unprocessable_entity` and exit with
a message.

History

#1 Updated by The Foreman Bot 10 months ago

  • Status changed from New to Ready For Testing
  • Assignee set to Shimon Shtein
  • Pull request https://github.com/theforeman/foreman/pull/4852 added

#2 Updated by Ivan Necas 10 months ago

  • Status changed from Ready For Testing to Closed
  • Legacy Backlogs Release (now unused) set to 296

#3 Updated by Shimon Shtein 10 months ago

  • Bugzilla link set to 1387202

Also available in: Atom PDF