saltstack/salt — pull request #6715 by s0undt3ch (2013-08-15 12:36:14+00:00)
Title: If not passing a `hostname`, use `None` in `getaddrinfo`.

On my machine, passing an empty string to `getaddrinfo` raises errno 2, "No such file or directory". Use `None` if `hostname` is a string.