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.
Actions