Skip to content

Commit

Permalink
Changes based on CR
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Dec 21, 2020
1 parent 73bcd14 commit f6313e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/include/network/services/dns.rb
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,7 @@ def dhcp?
def propose_hostname_for(conn, hostname)
return hostname if hostname.to_s.empty? || hostname.include?(".")

_, *domain = conn.hostname.split(".")
domain.prepend(hostname).join(".")
conn.hostname.sub(/^[^.]+/, hostname)
end
end
end

0 comments on commit f6313e4

Please sign in to comment.