mirror of
https://github.com/ansible/awx.git
synced 2026-04-05 01:59:25 -02:30
Fix issue #1253... mention the tower product and version in the 404 data string
This commit is contained in:
@@ -21,6 +21,7 @@ from django.utils.timezone import now, is_aware, make_aware
|
|||||||
from django.utils.tzinfo import FixedOffset
|
from django.utils.tzinfo import FixedOffset
|
||||||
|
|
||||||
# AWX
|
# AWX
|
||||||
|
import awx
|
||||||
from awx.main.models import *
|
from awx.main.models import *
|
||||||
|
|
||||||
# ZeroMQ
|
# ZeroMQ
|
||||||
@@ -59,7 +60,7 @@ class TowerSocket(object):
|
|||||||
'/socket.io/job_events': JobEventNamespace})
|
'/socket.io/job_events': JobEventNamespace})
|
||||||
else:
|
else:
|
||||||
start_response('404 Not Found', [])
|
start_response('404 Not Found', [])
|
||||||
return ['<h1>Not Found</h1>']
|
return ['Tower version %s' % awx.__version__]
|
||||||
|
|
||||||
def notification_handler(bind_port, server):
|
def notification_handler(bind_port, server):
|
||||||
handler_context = zmq.Context()
|
handler_context = zmq.Context()
|
||||||
|
|||||||
Reference in New Issue
Block a user