From e87e62d301dbd8fe99ac74be7a38009b2e3748cb Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sun, 13 Jan 2008 15:10:48 -0500 Subject: Add jobthing, which is our async job engine. It's still in progress and very much a prototype that isn't expected to work yet, but you get the idea. --- func/minion/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'func/minion/utils.py') diff --git a/func/minion/utils.py b/func/minion/utils.py index 7599657..723bd85 100755 --- a/func/minion/utils.py +++ b/func/minion/utils.py @@ -37,7 +37,10 @@ def get_hostname(): # for the certmaster for now hostname = None hostname = socket.gethostname() - ip = socket.gethostbyname(hostname) + try: + ip = socket.gethostbyname(hostname) + except: + return hostname if ip != "127.0.0.1": return hostname -- cgit