From 646f848cfb12da3ad20d69b2b8d2ce8e652a1ba3 Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Tue, 12 Jul 2016 15:46:48 -0400 Subject: [PATCH] fix incorrect error message --- awx/api/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/api/views.py b/awx/api/views.py index 43da567e8f..4af8a6561e 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -3651,10 +3651,10 @@ class RoleUsersList(SubListCreateAttachDetachAPIView): return role.members.all() def post(self, request, *args, **kwargs): - # Forbid implicit role creation here + # Forbid implicit user creation here sub_id = request.data.get('id', None) if not sub_id: - data = dict(msg="Role 'id' field is missing.") + data = dict(msg="User 'id' field is missing.") return Response(data, status=status.HTTP_400_BAD_REQUEST) return super(RoleUsersList, self).post(request, *args, **kwargs)