Actions
Feature #16381
closedProvide module_enabled? helper in hook context
Description
A new function should be added to the hook context to determine if a module is enabled in the current config, which would help when displaying post hooks.
Currently the most obvious method is kafo.config.module_enabled?('foo')
, but this may return true if internally the Configuration contains some unpersisted data for the module (issue #16240). Ideally, the .enabled? method should be called on the relevant PuppetModule. This can be done with kafo.modules.find { .. }.enabled?
, so a helper would make this more accessible.
Updated by Dominic Cleal over 8 years ago
- Blocks Bug #16240: module_enabled? in post hook returns true when module is disabled added
Updated by The Foreman Bot over 8 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/kafo/pull/173 added
Updated by Dominic Cleal over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 5724507a51afe0f2785a4d78087d15779983468f.
Actions