saltstack/salt — pull request #911 by grierj (2012-03-15 01:46:20+00:00)
Title: Adding hardcoded appendable domain

Solaris gives back a short name when calling socket.getfqdn(). Probably has to do with our setup, but there may be others out there that want systems to be normalized to have a full domain name. So I added this code to normalize out short names by appending a given domain name.

I'm not terribly satisfied with this solution, but outside of terrible hackery this seems to be the safest way to move forward. I welcome more elegant solutions and am happy to implement them.