Package action should fail better when host doesn't have operating system assigned
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
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.
#2 Updated by Anonymous about 3 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman_plugin|4eba7de1875e61c945a460146087c1451a1375a6.