Skip to content

Commit

Permalink
Update src/lib/y2network/sysconfig/hostname_writer.rb
Browse files Browse the repository at this point in the history
Co-Authored-By: Knut Alejandro Anderssen González <kanderssen@suse.de>
  • Loading branch information
mchf and teclator committed Feb 18, 2020
1 parent 94b906e commit e7d6c74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/y2network/sysconfig/hostname_writer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def update_sysconfig_dhcp(hostname, old_hostname)
# @param hostname [Y2Network::Hostname] Hostname configuration
def update_hostname(hostname)
hostname = hostname.static
# 1) when user asked for ereasing hostname from /etc/hostname, we keep runtime as it is
# 1) when user asked for erasing hostname from /etc/hostname, we keep runtime as it is
# 2) we will write whatever user wants even FQDN - no changes under the hood
Yast::Execute.on_target!("/usr/bin/hostname", hostname) if !hostname.empty?
Yast::SCR.Write(
Expand Down

0 comments on commit e7d6c74

Please sign in to comment.