Add dynamic role in /api/v1/ping/

This commit is contained in:
Luke Sneeringer 2014-09-30 13:05:27 -05:00
parent 1c11f43ea2
commit e43488467e

View File

@ -130,7 +130,7 @@ class ApiV1PingView(APIView):
this requires no auth and is intended for use by the installer process.
"""
return Response({
'role': 'standalone', # FIXME: Make this dynamic.
'role': Instance.objects.my_role(),
'version': get_awx_version(),
})