Project

General

Profile

Bug #13632

Package action should fail better when host doesn't have operating system assigned

Added by Stephen Benjamin about 3 years ago. Updated 10 months ago.

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

Description

If you don't have an OS assigned to your host, you get an unhelpful error message. We should fail better

We should handle the case:

- If host has no OS assigned
- If host has an OS but unsupported

Associated revisions

Revision 4eba7de1 (diff)
Added by Stephen Benjamin about 3 years ago

fixes #13133, #13632 - improve package action template

This change renames the 'die' function to 'exit_with_message' as some
users found it particularly terrifying to see this as the first line in
the template preview. It also adds documentation to the function.

Secondly, it causes the package action template to fail more gracefully
when a host has no operating system, or an unsupported one.

Revision 29714e7e
Added by Stephen Benjamin about 3 years ago

Merge pull request #152 from stbenjam/package-action-improvements

fixes #13133, #13632 - improve package action template

History

#1 Updated by The Foreman Bot about 3 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Stephen Benjamin
  • Target version set to 98
  • Pull request https://github.com/theforeman/foreman_remote_execution/pull/152 added

#2 Updated by Anonymous about 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF