Merge pull request #396 from jcoconnor/MAINT-Fix-Staledns-count

(MAINT) Fix Staledns error counter
This commit is contained in:
Gene Liverman 2020-08-21 14:13:24 -04:00 committed by GitHub
commit f8c64b4006
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -368,7 +368,7 @@ module Vmpooler
$metrics.increment("errors.duplicatehostname.#{pool_name}")
$logger.log('s', "[!] [#{pool_name}] Generated hostname #{hostname} was not unique (attempt \##{hostname_retries} of #{max_hostname_retries})")
elsif !dns_available
$metrics.increment("errors.staledns.#{hostname}")
$metrics.increment("errors.staledns.#{pool_name}")
$logger.log('s', "[!] [#{pool_name}] Generated hostname #{hostname} already exists in DNS records (#{dns_ip}), stale DNS")
end
end