diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-11-22 06:43:43 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-11-22 06:43:43 +0000 |
commit | c05bf655545d5b27b941ea03c1631d975557977e (patch) | |
tree | a71784aa8d29749a4ec674c22dafb5c408b58f94 /lib/custodian/alerter.rb | |
parent | 80b250e226472b3d7d71c194ea1cd2b02f52885c (diff) |
Updated for new class name.
Diffstat (limited to 'lib/custodian/alerter.rb')
-rw-r--r-- | lib/custodian/alerter.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/custodian/alerter.rb b/lib/custodian/alerter.rb index cb251e7..ffa07dd 100644 --- a/lib/custodian/alerter.rb +++ b/lib/custodian/alerter.rb @@ -1,5 +1,5 @@ -require 'custodian/dnsutil' +require 'custodian/util/dns' require 'mauve/sender' require 'mauve/proto' @@ -97,7 +97,7 @@ class Alerter ( target =~ /^([0-9a-f:]+)$/ ) ) resolved = target else - resolved = DNSUtil.hostname_to_ip( target ) + resolved = Custodian::Util::DNS.hostname_to_ip( target ) end @@ -227,7 +227,7 @@ class Alerter subject = @details['target_host'] if ( ( subject =~ /^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)$/ ) || ( subject =~ /^([0-9a-f:]+)$/ ) ) - res = DNSUtil.ip_to_hostname( subject ) + res = Custodian::Util::DNS.ip_to_hostname( subject ) if ( res ) subject = res end @@ -240,7 +240,7 @@ class Alerter if ( ( @details["target_host"] =~ /^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)$/ ) || ( @details["target_host"] =~ /^([0-9a-f:]+)$/ ) ) - resolved = DNSUtil.ip_to_hostname( @details["target_host"] ) + resolved = Custodian::Util::DNS.ip_to_hostname( @details["target_host"] ) if ( resolved.nil? ) resolved = "" else |