diff options
author | Juan Antonio Osorio Robles <jaosorior@redhat.com> | 2016-09-05 14:33:45 +0300 |
---|---|---|
committer | Juan Antonio Osorio Robles <jaosorior@redhat.com> | 2016-09-05 14:33:45 +0300 |
commit | fdfd8ab4f729d471b3c5abdd5562a6ceb17089f3 (patch) | |
tree | 657109ab8c0676fd43b3c7e8b55ddb5c617c534b /lib/facter | |
parent | 4936c4da5d0bd81e31bc95382db499d30efe5b64 (diff) |
Make fqdn fact names match service net map
This will make it easier to use and consume from t-h-t, making their
use more dynamic. This is still safe to do, since these are not used
by anything yet.
Change-Id: I4d603938c568320d4ae1cc7a396070ad4ac62132
Diffstat (limited to 'lib/facter')
-rw-r--r-- | lib/facter/alt_fqdns.rb | 6 |
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(".") |