From 7b41e22e56fd622d2f595148b80e607f3ba348e7 Mon Sep 17 00:00:00 2001 From: Stephen Fromm Date: Thu, 26 Apr 2012 08:39:21 -0700 Subject: [PATCH] Change to socket.getfqdn() for fqdn fact --- library/setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/setup b/library/setup index 291d5f000c..6345a9fe09 100755 --- a/library/setup +++ b/library/setup @@ -224,7 +224,7 @@ def get_iface_hwaddr(iface): return ''.join(['%02x:' % ord(char) for char in info[18:24]])[:-1] def get_network_facts(facts): - facts['fqdn'] = socket.gethostname() + facts['fqdn'] = socket.getfqdn() facts['hostname'] = facts['fqdn'].split('.')[0] facts['interfaces'] = get_interfaces() for iface in facts['interfaces']: