fixing services view
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user