Project

General

Profile

« Previous | Next » 

Revision e254ea51

Added by Joseph Magen almost 10 years ago

fixes #5834 - Hosts: . in the name is invalid - user is told this but the UI adds one anyway

View differences:

app/models/host/managed.rb
# we should guarantee the fqdn is always fully qualified
def fqdn
return name if name.blank? || ( !SETTINGS[:unattended] && domain.nil? )
return name if name.blank? || domain.blank?
name.include?('.') ? name : "#{name}.#{domain}"
end

Also available in: Unified diff