saltstack/salt — pull request #12361 by steverweber (2014-04-29 02:04:51+00:00)
Title: starting to cleanup minion id generation and resolving fqdn

attempt 2 at a patch for resolving FQDN for the minion id.

This patch is a WIP and not tested... could have syntex and logic errors..
What this patch does is
- migrate logic from salt/config.py for resolving hostname to salt/utils/network.py
- create a list of possible minion id
- sorts the list of minion ids so FQDNs float to the top

This patch still needs some work but looks kinda cool to me.