From b72dedc36e60dcb5857da4f35274409c0ecced83 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sat, 20 Apr 2013 09:24:59 -0400 Subject: [PATCH] Since using platform.node, be sure to just return the hostname component. --- setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup b/setup index 6ea257d5a67..91982cbbb05 100644 --- a/setup +++ b/setup @@ -139,7 +139,7 @@ class Facts(object): self.facts['machine'] = platform.machine() self.facts['python_version'] = platform.python_version() self.facts['fqdn'] = socket.getfqdn() - self.facts['hostname'] = platform.node() + self.facts['hostname'] = platform.node().split('.')[0] self.facts['domain'] = '.'.join(self.facts['fqdn'].split('.')[1:]) if self.facts['machine'] == 'x86_64': self.facts['architecture'] = self.facts['machine']