You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(PUP-12083) Update soft limit warning for fact value & name length
This commit updates the warning for exceeding the fact value length soft limit
to include the fact name and updates the warning for exceeding the fact name
length soft limit to give the fact name with dots & include the length that was
used to evaluate if the length exceeds the limit.
Puppet.warning_("The current number of top level facts: %{size} exceeds the top facts limit: %{max_size}") % {size: size,max_size: max_number}
144
144
end
145
145
146
-
defwarn_fact_value_length(value,max_length)
147
-
Puppet.warning_("Fact value '%{value}' with the value length: '%{length}' exceeds the value length limit: %{max_length}") % {value: value,length: value.to_s.bytesize,max_length: max_length}
146
+
defwarn_fact_value_length(name,value,max_length)
147
+
Puppet.warning_("Fact %{name} with value %{value} with the value length: %{length} exceeds the value length limit: %{max_length}") % {name: name,value: value,length: value.to_s.bytesize,max_length: max_length}
148
148
end
149
149
150
150
defwarn_fact_payload_size(payload,max_size)
151
-
Puppet.warning_("Payload with the current size of: '%{payload}' exceeds the payload size limit: %{max_size}") % {payload: payload,max_size: max_size}
151
+
Puppet.warning_("Payload with the current size of: %{payload} exceeds the payload size limit: %{max_size}") % {payload: payload,max_size: max_size}
0 commit comments