summaryrefslogtreecommitdiffstats
path: root/lib/facter/networking.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-05-15 15:21:59 -0500
committerLuke Kanies <luke@madstop.com>2008-05-15 15:21:59 -0500
commitbb92493c3868c54ef441a4f60c0b6a95ff742f88 (patch)
treec67103448670ab9b2c11a3efd8f6c441dbdce774 /lib/facter/networking.rb
parentdcfc1714959bf2afa2d890b36ea3faaaab29759f (diff)
downloadfacter-bb92493c3868c54ef441a4f60c0b6a95ff742f88.tar.gz
facter-bb92493c3868c54ef441a4f60c0b6a95ff742f88.tar.xz
facter-bb92493c3868c54ef441a4f60c0b6a95ff742f88.zip
Fixing the last few occurrences of Facter::Resolution instead of Facter::Util::Resolution.
Diffstat (limited to 'lib/facter/networking.rb')
-rw-r--r--lib/facter/networking.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/facter/networking.rb b/lib/facter/networking.rb
index 8c80af2..e4cf102 100644
--- a/lib/facter/networking.rb
+++ b/lib/facter/networking.rb
@@ -29,7 +29,7 @@
# Look for the DNS domain name command first.
Facter.add(:domain) do
setcode do
- domain = Facter::Resolution.exec('dnsdomainname') or nil
+ domain = Facter::Util::Resolution.exec('dnsdomainname') or nil
# make sure it's a real domain
if domain and domain =~ /.+\..+/
domain
@@ -40,7 +40,7 @@
end
Facter.add(:domain) do
setcode do
- domain = Facter::Resolution.exec('domainname') or nil
+ domain = Facter::Util::Resolution.exec('domainname') or nil
# make sure it's a real domain
if domain and domain =~ /.+\..+/
domain
@@ -80,7 +80,7 @@
Facter.add(:hostname, :ldapname => "cn") do
setcode do
hostname = nil
- name = Facter::Resolution.exec('hostname') or nil
+ name = Facter::Util::Resolution.exec('hostname') or nil
if name
if name =~ /^([\w-]+)\.(.+)$/
hostname = $1
@@ -133,7 +133,7 @@
if hostname = Facter.value(:hostname)
# we need Hostname to exist for this to work
host = nil
- if host = Facter::Resolution.exec("host #{hostname}")
+ if host = Facter::Util::Resolution.exec("host #{hostname}")
host = host.chomp.split(/\s/)
if defined? list[-1] and
list[-1] =~ /[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/