Project

General

Profile

Feature #20966

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

Added by Shimon Shtein over 5 years ago. Updated over 4 years ago.

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

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 over 5 years 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 over 5 years 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 over 5 years ago

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

#3 Updated by Shimon Shtein over 5 years ago

  • Bugzilla link set to 1387202

Also available in: Atom PDF