mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
remove localfqdn grain
This commit is contained in:
parent
0abedcd56d
commit
d5cbf92089
@ -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