puppetlabs/puppet · error

Unable to mark '%{name}' as sensitive: the property itself i

Error message

Unable to mark '%{name}' as sensitive: the property itself is not defined on %{type}.

What it means

Error "Unable to mark '%{name}' as sensitive: the property itself is not defined on %{type}." thrown in puppetlabs/puppet.

Source

Thrown at lib/puppet/type.rb:2400

  #   marked as public as subclasses may need to override this method.
  #
  # @api public
  #
  # @param sensitive_parameters [Array<Symbol>] A list of parameters to mark as sensitive.
  #
  # @return [void]
  def set_sensitive_parameters(sensitive_parameters)
    sensitive_parameters.each do |name|
      p = parameter(name)
      if p.is_a?(Puppet::Property)
        p.sensitive = true
      elsif p.is_a?(Puppet::Parameter)
        warning(_("Unable to mark '%{name}' as sensitive: %{name} is a parameter and not a property, and cannot be automatically redacted.") %
                    { name: name })
      elsif self.class.attrclass(name)
        warning(_("Unable to mark '%{name}' as sensitive: the property itself was not assigned a value.") % { name: name })
      else
        err(_("Unable to mark '%{name}' as sensitive: the property itself is not defined on %{type}.") % { name: name, type: type })
      end
    end

    parameters.each do |_name, param|
      next if param.sensitive

      if param.is_a?(Puppet::Parameter)
        param.sensitive = param.is_sensitive if param.respond_to?(:is_sensitive)
      end
    end
  end

  private

  # Sets the name of the resource from a hash containing a mapping of `name_var` to value.
  # Sets the value of the property/parameter appointed by the `name_var` (if it is defined). The value set is
  # given by the corresponding entry in the given hash - e.g. if name_var appoints the name `:path` the value
  # of `:path` is set to the value at the key `:path` in the given hash. As a side effect this key/value is then

View on GitHub (pinned to e227c27540)

When it happens

Trigger: Thrown at lib/puppet/type.rb:2400 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/c5f2039d9a1593e4. Report an issue: GitHub.