Skip to content

Commit ea45e90

Browse files
authored
[AAP-59444] Add metadata to return the AuthenticatorUpdateSerializer to say 'type' is read only (ansible#889)
Adding metadata to the checks for the serializer to make type read-only.
1 parent 6d162c1 commit ea45e90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ansible_base/authentication/views/authenticator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def get_serializer(self, *args, **kwargs):
3737
return super().get_serializer(*args, **kwargs)
3838

3939
def get_serializer_class(self):
40-
if self.action in ['update', 'partial_update']:
40+
if self.action in ['update', 'partial_update', 'metadata']:
4141
return AuthenticatorUpdateSerializer
4242
return super().get_serializer_class()
4343

0 commit comments

Comments
 (0)