puppetlabs/puppet · error · Puppet::Settings::ValidationError
Invalid negative 'time to live' %{value} - did you mean 'unl
Error message
Invalid negative 'time to live' %{value} - did you mean 'unlimited'? What it means
Error "Invalid negative 'time to live' %{value} - did you mean 'unlimited'?" thrown in puppetlabs/puppet.
Source
Thrown at lib/puppet/settings/ttl_setting.rb:39
def type
:ttl
end
# Convert the value to Numeric, parsing numeric string with units if necessary.
def munge(value)
self.class.munge(value, @name)
end
def print(value)
val = munge(value)
val == Float::INFINITY ? 'unlimited' : val
end
# Convert the value to Numeric, parsing numeric string with units if necessary.
def self.munge(value, param_name)
if value.is_a?(Numeric)
if value < 0
raise Puppet::Settings::ValidationError, _("Invalid negative 'time to live' %{value} - did you mean 'unlimited'?") % { value: value.inspect }
end
value
elsif value == 'unlimited'
Float::INFINITY
elsif value.is_a?(String) and value =~ FORMAT
::Regexp.last_match(1).to_i * UNITMAP[::Regexp.last_match(2) || 's']
else
raise Puppet::Settings::ValidationError, _("Invalid 'time to live' format '%{value}' for parameter: %{param_name}") % { value: value.inspect, param_name: param_name }
end
end
end
View on GitHub (pinned to e227c27540)
When it happens
Trigger: Thrown at lib/puppet/settings/ttl_setting.rb:39 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/ae7685623ed40b57.
Report an issue: GitHub.