puppetlabs/puppet · error · ArgumentError

copyright owner must be a string or an array of strings

Error message

copyright owner must be a string or an array of strings

What it means

Error "copyright owner must be a string or an array of strings" thrown in puppetlabs/puppet.

Source

Thrown at lib/puppet/interface/documentation.rb:281

      else
        "Unknown copyright owner and years."
      end
    end

    # Sets the copyright owner
    # @param value [String, Array<String>] The copyright owner or
    #   owners.
    # @return [String] Comma-separated list of copyright owners
    # @api private
    attr_reader :copyright_owner

    def copyright_owner=(value)
      case value
      when String then @copyright_owner = value
      when Array  then @copyright_owner = value.join(", ")
      else
        # TRANSLATORS 'copyright' is an attribute name and should not be translated
        raise ArgumentError, _("copyright owner must be a string or an array of strings")
      end
    end

    # Sets the copyright year
    # @param value [Integer, Range<Integer>, Array<Integer, Range>] The
    #   copyright year or years.
    # @return [String]
    # @api private
    attr_reader :copyright_years

    def copyright_years=(value)
      years = munge_copyright_year value
      years = (years.is_a?(Array) ? years : [years])
              .sort_by do |x| x.is_a?(Range) ? x.first : x end

      @copyright_years = years.map do |year|
        if year.is_a? Range then
          "#{year.first}-#{year.last}"

View on GitHub (pinned to e227c27540)

When it happens

Trigger: Thrown at lib/puppet/interface/documentation.rb:281 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/37ee09bfcddb353c. Report an issue: GitHub.