aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-07-13 19:11:32 +0000
committerGerrit Code Review <review@openstack.org>2016-07-13 19:11:32 +0000
commitdb4e237d527a4f400efba66590d833e6d0e585ef (patch)
treeaf576e49ee68aaf9dfb171e9518ccad76e68a68e
parent36031336d2ccf818cb6820fc5e57cb6ef14de0e8 (diff)
parentedde5b9a28449f270d7813edca6f49aead4fb5a9 (diff)
Merge "Fix retrieval of hostname fact based on network."
-rw-r--r--lib/facter/alt_fqdns.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/facter/alt_fqdns.rb b/lib/facter/alt_fqdns.rb
index 24d6ef1..8a4d59b 100644
--- a/lib/facter/alt_fqdns.rb
+++ b/lib/facter/alt_fqdns.rb
@@ -26,7 +26,7 @@
Facter.value(:hostname),
network,
Facter.value(:domain),
- ].reject { |part| part.empty? }
+ ].reject { |part| part.nil? || part.empty? }
external_hostname_parts.join(".")
end
end