Commit 70e1fbfc authored by whitlocb's avatar whitlocb

I fixed an error in the domainname() method of internallauncher.

git-svn-id: 18c085ea-50e0-402c-830e-de6fd14e8384
parent fa9e2aea
......@@ -1581,7 +1581,7 @@ class MainLauncher(object):
def domainname(self):
fullhost = socket.gethostbyname_ex(self.hostname())[0]
pos = string.find(fullhost, ".")
if pos != -1:
if pos == -1:
return fullhost
return fullhost[pos+1:]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment