Project

General

Profile

Feature #20966

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

Added by Shimon Shtein about 1 year ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

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

Associated revisions

Revision 08912c32 (diff)
Added by Shimon Shtein about 1 year 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 about 1 year 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 about 1 year ago

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

#3 Updated by Shimon Shtein about 1 year ago

  • Bugzilla link set to 1387202

Also available in: Atom PDF