mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
commit
51cb5b1840
@ -461,7 +461,6 @@ def hostname():
|
||||
comps = grains['fqdn'].split('.')
|
||||
grains['host'] = comps[0]
|
||||
grains['localhost'] = socket.gethostname()
|
||||
grains['localfqdn'] = __salt__['cmd.run']('hostname -f').strip()
|
||||
if len(comps) > 1:
|
||||
grains['domain'] = '.'.join(comps[1:])
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user