mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Debian: Hostname always updated
This commit is contained in:
parent
b79fed3a92
commit
5ff749e487
@ -1808,7 +1808,8 @@ def build_network_settings(**settings):
|
||||
|
||||
# Write hostname to /etc/hostname
|
||||
sline = opts['hostname'].split('.', 1)
|
||||
hostname = '{0}\n' . format(sline[0])
|
||||
opts['hostname'] = sline[0]
|
||||
hostname = '{0}\n' . format(opts['hostname'])
|
||||
current_domainname = current_network_settings['domainname']
|
||||
|
||||
# Only write the hostname if it has changed
|
||||
|
Loading…
Reference in New Issue
Block a user