diff options
author | softwarefactory-project-zuul[bot] <softwarefactory-project-zuul[bot]@users.noreply.github.com> | 2019-04-10 22:36:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-10 22:36:42 +0200 |
commit | 8383568e3c503ece1fb99163eff3097b7037c881 (patch) | |
tree | 8c7d59a3d82285dfac8c49be4bd517d6005852fa | |
parent | Merge pull request #3671 from athenahealth/fix-awx-logos-inventory-comments (diff) | |
parent | remove invalid json renderer from metrics endpoint (diff) | |
download | awx-8383568e3c503ece1fb99163eff3097b7037c881.tar.xz awx-8383568e3c503ece1fb99163eff3097b7037c881.zip |
Merge pull request #3672 from rooftopcellist/metrics_content_types
remove invalid json renderer from metrics endpoint
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
-rw-r--r-- | awx/api/views/metrics.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/awx/api/views/metrics.py b/awx/api/views/metrics.py index d9a7795d45..5d60747260 100644 --- a/awx/api/views/metrics.py +++ b/awx/api/views/metrics.py @@ -9,7 +9,6 @@ from django.utils.translation import ugettext_lazy as _ # Django REST Framework from rest_framework.response import Response -from rest_framework.renderers import JSONRenderer from rest_framework.exceptions import PermissionDenied @@ -32,8 +31,7 @@ class MetricsView(APIView): swagger_topic = 'Metrics' renderer_classes = [renderers.PlainTextRenderer, - renderers.BrowsableAPIRenderer, - JSONRenderer,] + renderers.BrowsableAPIRenderer,] def get(self, request, format='txt'): ''' Show Metrics Details ''' |