Bug #18977
Do not raise an exception when creating a role during plugin initialization
Description
When a plugin defines a role depending on a permission added by core's seeds, the plugin will fail to initialize on a unseeded database. Logging the error instead of raising would make the plugin initialize. Roles will be added on later restarts.
For more information see discussions on these PRs:
https://github.com/theforeman/foreman-packaging/pull/1561
https://github.com/theforeman/foreman-packaging/pull/1542
Associated revisions
History
#1
Updated by The Foreman Bot over 5 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/4396 added
#2
Updated by Anonymous over 5 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 6dea4e946619c636122a9953157be1a2a434c256.
#3
Updated by Dominic Cleal over 5 years ago
- Category set to Plugin integration
#4
Updated by Ohad Levy over 5 years ago
- Legacy Backlogs Release (now unused) set to 209
Fixes #18977 - Do not raise on creating a role in plugin when in Rake