diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-01-13 15:10:48 -0500 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-01-13 15:10:48 -0500 |
commit | e87e62d301dbd8fe99ac74be7a38009b2e3748cb (patch) | |
tree | bd125c5daac096a7887ab0a12a6a9ea4633a40ca /func/minion/utils.py | |
parent | 8c4a154f196383f6d0969934e10641e83ac51af4 (diff) | |
download | func-e87e62d301dbd8fe99ac74be7a38009b2e3748cb.tar.gz func-e87e62d301dbd8fe99ac74be7a38009b2e3748cb.tar.xz func-e87e62d301dbd8fe99ac74be7a38009b2e3748cb.zip |
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.
Diffstat (limited to 'func/minion/utils.py')
-rwxr-xr-x | func/minion/utils.py | 5 |
1 files changed, 4 insertions, 1 deletions
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 |