Fix retrieval of hostname fact based on network.
authorSofer Athlan-Guyot <sathlang@redhat.com>
Wed, 22 Jun 2016 10:23:10 +0000 (12:23 +0200)
committerAthlan-Guyot sofer <sathlang@redhat.com>
Mon, 11 Jul 2016 09:25:37 +0000 (09:25 +0000)
commitedde5b9a28449f270d7813edca6f49aead4fb5a9
treeddda0347faa09f56857db00b420dce377f042606
parentadc02fd625b6be1ee6529a4c7646e62d793a206a
Fix retrieval of hostname fact based on network.

When Facter.value(:domain) is nil the facts fqdn_<network> are failing
with :

Could not retrieve fact='fqdn_external', resolution='<anonymous>': undefined method `empty?' for nil:NilClass

Change-Id: I3e7fa983d4cf91c6ab25f9aa4c353b364f44826e
Closes-bug: 1595125
lib/facter/alt_fqdns.rb