summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-09-06 13:20:33 +0000
committerGerrit Code Review <review@openstack.org>2016-09-06 13:20:33 +0000
commitc7c0c4a297c46651806219fd232254aa163e2029 (patch)
tree26380ceef3c9677a0d159af367d759963dfd5aab
parent8b0e161f7592bf33d09ba85d9a32fa6682948a2c (diff)
parentfdfd8ab4f729d471b3c5abdd5562a6ceb17089f3 (diff)
Merge "Make fqdn fact names match service net map"
-rw-r--r--lib/facter/alt_fqdns.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/facter/alt_fqdns.rb b/lib/facter/alt_fqdns.rb
index 8a4d59b..89c4b6a 100644
--- a/lib/facter/alt_fqdns.rb
+++ b/lib/facter/alt_fqdns.rb
@@ -14,9 +14,9 @@
# under the License.
[
'external',
- 'internalapi',
+ 'internal_api',
'storage',
- 'storagemgmt',
+ 'storage_mgmt',
'tenant',
'management',
].each do |network|
@@ -24,7 +24,7 @@
setcode do
external_hostname_parts = [
Facter.value(:hostname),
- network,
+ network.gsub('_', ''),
Facter.value(:domain),
].reject { |part| part.nil? || part.empty? }
external_hostname_parts.join(".")