From e43488467e45dcdd6b5c1e2fdce008b0014f3c12 Mon Sep 17 00:00:00 2001 From: Luke Sneeringer Date: Tue, 30 Sep 2014 13:05:27 -0500 Subject: [PATCH] Add dynamic role in /api/v1/ping/ --- awx/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/api/views.py b/awx/api/views.py index 91e55ce88d..61abc5a509 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -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(), })