Merge pull request #890 from teancom/develop

very small change
This commit is contained in:
Thomas S Hatch 2012-03-12 20:28:04 -07:00
commit 1a4f244a88

View file

@ -461,6 +461,7 @@ 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: