puppetlabs/puppet · error · ArgumentError
Exported resource try to override without parameters
Error message
Exported resource try to override without parameters
What it means
AbstractCollector#initialize guard: an overrides hash was supplied for a collector but it carried no :parameters entry, which for exported-resource overriding means 'override with nothing' and is rejected.
Solutions
- Include a :parameters hash in the collector overrides
- Drop the override entirely if no parameter changes are intended
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at lib/puppet/pops/evaluator/collectors/abstract_collector.rb:32 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of puppetlabs/puppet@e227c27540 (2026-08-21).
Data as JSON: /api/errors/f55b90433b7bbf14.
Report an issue: GitHub.
Appendix: source
Thrown at lib/puppet/pops/evaluator/collectors/abstract_collector.rb:32
EMPTY_RESOURCES = [].freeze
# Initialized the instance variables needed by the base
# collector class to perform evaluation
#
# @param [Puppet::Parser::Scope] scope
#
# @param [Hash] overrides a hash of optional overrides
# @options opts [Array] :parameters
# @options opts [String] :file
# @options opts [Array] :line
# @options opts [Puppet::Resource::Type] :source
# @options opts [Puppet::Parser::Scope] :scope
def initialize(scope, overrides = nil)
@collected = {}
@scope = scope
unless overrides.nil? || overrides[:parameters]
raise ArgumentError, _("Exported resource try to override without parameters")
end
@overrides = overrides
end
# Collects resources and marks collected objects as non-virtual. Also
# handles overrides.
#
# @return [Array] the resources we have collected
def evaluate
objects = collect.each do |obj|
obj.virtual = false
end
return false if objects.empty?
if @overrides and !objects.empty?
overrides[:source].override = trueView on GitHub (pinned to e227c27540)