Project

General

Profile

« Previous | Next » 

Revision a406cf2b

Added by Matěj Mudra 8 months ago

fixes #36160 - Redefine append domain names setting

This PR aims to unify the format of host names stored in the database and the way they are displayed.
With this change, the name of the host is always going to be stored with the domain name appended.
The setting formerly named `append_domain_name_for_hosts` is now renamed to `display_fqdn_for_hosts`
because it will only impact how the names are displayed from now.
This means dashboards and breadcrumbs are going to display the whole FQDN if you choose to.

View differences:

test/unit/name_synchronizer_test.rb
context "synchronizer build from host on shortnames" do
before do
Setting[:append_domain_name_for_hosts] = false
Setting[:display_fqdn_for_hosts] = false
end
test "#sync_required? detects difference between names" do
refute_equal @host.name, @host.primary_interface.shortname

Also available in: Unified diff