summaryrefslogtreecommitdiffstats
path: root/func/minion/utils.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-01-13 15:10:48 -0500
committerMichael DeHaan <mdehaan@redhat.com>2008-01-13 15:10:48 -0500
commite87e62d301dbd8fe99ac74be7a38009b2e3748cb (patch)
treebd125c5daac096a7887ab0a12a6a9ea4633a40ca /func/minion/utils.py
parent8c4a154f196383f6d0969934e10641e83ac51af4 (diff)
downloadfunc-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-xfunc/minion/utils.py5
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