puppetlabs/puppet · error · ArgumentError
Only one of the delimiters [ { ( < | can be given in the for
Error message
Only one of the delimiters [ { ( < | can be given in the format flags, got '#{fmt}' What it means
Error "Only one of the delimiters [ { ( < | can be given in the format flags, got '#{fmt}'" thrown in puppetlabs/puppet.
Source
Thrown at lib/puppet/pops/types/string_converter.rb:133
flags = match[1].split('') || []
unless flags.uniq.size == flags.size
raise ArgumentError, "The same flag can only be used once, got '#{fmt}'"
end
@left = flags.include?('-')
@alt = flags.include?('#')
@plus = if flags.include?(' ')
:space
else
flags.include?('+') ? :plus : :ignore
end
@zero_pad = flags.include?('0')
@delimiters = nil
DELIMITERS.each do |d|
next unless flags.include?(d)
unless @delimiters.nil?
raise ArgumentError, "Only one of the delimiters [ { ( < | can be given in the format flags, got '#{fmt}'"
end
@delimiters = d
end
@width = match[2] ? match[2].to_i : nil
@prec = match[3] ? match[3].to_i : nil
end
# Merges one format into this and returns a new `Format`. The `other` format overrides this.
# @param [Format] other
# @returns [Format] a merged format
#
def merge(other)
result = Format.new(other.orig_fmt)
result.separator = other.separator || separator
result.separator2 = other.separator2 || separator2
result.container_string_formats = Format.merge_string_formats(container_string_formats, other.container_string_formats)View on GitHub (pinned to e227c27540)
When it happens
Trigger: Thrown at lib/puppet/pops/types/string_converter.rb:133 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/81d5b12ae1bbbd4d.
Report an issue: GitHub.