We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 32b6036 + 1771232 commit 20a2741Copy full SHA for 20a2741
1 file changed
lib/puppet/reports/datadog_reports.rb
@@ -22,6 +22,9 @@
22
rescue
23
raise(Puppet::ParseError, "Invalid hostname_extraction_regex #{HOSTNAME_REGEX}")
24
end
25
+ unless HOSTNAME_EXTRACTION_REGEX.named_captures.has_key? "hostname"
26
+ raise(Puppet::ParseError, "hostname_extraction_regex doesn't include a match group named 'hostname': #{HOSTNAME_REGEX}")
27
+ end
28
else
29
HOSTNAME_EXTRACTION_REGEX = nil
30
0 commit comments