puppetlabs/puppet · error · ArgumentError
actions need to know what to do when_invoked; please add the
Error message
actions need to know what to do when_invoked; please add the block
What it means
Error "actions need to know what to do when_invoked; please add the block" thrown in puppetlabs/puppet.
Source
Thrown at lib/puppet/interface/action_builder.rb:164
next if setter =~ /^=/
property = setter.to_s.chomp('=')
unless method_defined? property
# ActionBuilder#<property> delegates to Action#<setter>
def_delegator :@action, setter, property
end
end
private
def initialize(face, name, &block)
@face = face
@action = Puppet::Interface::Action.new(face, name)
instance_eval(&block)
unless @action.when_invoked
# TRANSLATORS 'when_invoked' is a method name and should not be translated and 'block' is a Ruby code block
raise ArgumentError, _("actions need to know what to do when_invoked; please add the block")
end
end
end
View on GitHub (pinned to e227c27540)
When it happens
Trigger: Thrown at lib/puppet/interface/action_builder.rb:164 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/0c44520b83db29a4.
Report an issue: GitHub.