fixing services view

This commit is contained in:
Jake Dahn
2011-07-18 15:06:59 -07:00
parent f7bb4f5fca
commit 217689d715

View File

@@ -29,6 +29,7 @@ from django.utils.translation import ugettext as _
import datetime
import json
import logging
import os
import subprocess
import sys
import urlparse
@@ -90,8 +91,8 @@ def index(request):
# TODO(mgius): This silences curl, but there's probably
# a better solution than using curl to begin with
subprocess.check_call(['curl', '-m', '1', v['internalURL']],
stdout=open(sys.devnull, 'w'),
stderr=open(sys.devnull, 'w'))
stdout=open(os.devnull, 'w'),
stderr=open(os.devnull, 'w'))
up = True
except:
up = False