This addresses #3356 and supports an arbitrary TLD with hosts in. Signed-off-by: Paul Nasrat <pnas...@googlemail.com> --- lib/facter/domain.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/facter/domain.rb b/lib/facter/domain.rb index 5dfead0..a04d2b8 100644 --- a/lib/facter/domain.rb +++ b/lib/facter/domain.rb @@ -10,7 +10,7 @@ Facter.add(:domain) do end domain = Facter::Util::Resolution.exec('dnsdomainname') - next domain if domain =~ /.+\..+/ + next domain unless domain.nil? if FileTest.exists?("/etc/resolv.conf") domain = nil -- 1.7.0.3 -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to puppet-...@googlegroups.com. To unsubscribe from this group, send email to puppet-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.