class Puppet::Pops::Evaluator::Runtime3Support::SeverityProducer

Configure the severity of failures

Constants

Issues

Public Class Methods

new() click to toggle source
# File lib/puppet/pops/evaluator/runtime3_support.rb, line 497
def initialize
  super
  p = self
  # Issues triggering warning only if --debug is on
  if Puppet[:debug]
    p[Issues::EMPTY_RESOURCE_SPECIALIZATION] = :warning
  else
    p[Issues::EMPTY_RESOURCE_SPECIALIZATION] = :ignore
  end

  # Store config issues, ignore or warning
  p[Issues::RT_NO_STORECONFIGS_EXPORT]    = Puppet[:storeconfigs] ? :ignore : :warning
  p[Issues::RT_NO_STORECONFIGS]           = Puppet[:storeconfigs] ? :ignore : :warning
end