mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge branch 'develop' of github.com:saltstack/salt into develop
This commit is contained in:
commit
6e70ba26df
@ -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