From c3b962ced53fe8ef1e0128c3402c5f36ce83801d Mon Sep 17 00:00:00 2001 From: Luke Sneeringer Date: Tue, 2 Dec 2014 10:39:54 -0600 Subject: [PATCH] /api/v1/ping/ was added in 2.1.0 --- awx/api/generics.py | 2 +- awx/api/views.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/api/generics.py b/awx/api/generics.py index 5930953628..ed60eacaeb 100644 --- a/awx/api/generics.py +++ b/awx/api/generics.py @@ -151,7 +151,7 @@ class APIView(views.APIView): ''' ret = super(APIView, self).metadata(request) added_in_version = '1.2' - for version in ('2.0.0', '1.4.8', '1.4.5', '1.4', '1.3'): + for version in ('2.1.0', '2.0.0', '1.4.8', '1.4.5', '1.4', '1.3'): if getattr(self, 'new_in_%s' % version.replace('.', ''), False): added_in_version = version break diff --git a/awx/api/views.py b/awx/api/views.py index da409f304b..893a1be245 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -130,6 +130,7 @@ class ApiV1PingView(APIView): permission_classes = (AllowAny,) authentication_classes = () view_name = 'Ping' + new_in_210 = True def get(self, request, format=None): """Return some basic information about this Tower instance.