diff --git a/src/middlewared/middlewared/plugins/kerberos.py b/src/middlewared/middlewared/plugins/kerberos.py
index e4c634081fa06..ff86b17747542 100644
--- a/src/middlewared/middlewared/plugins/kerberos.py
+++ b/src/middlewared/middlewared/plugins/kerberos.py
@@ -843,7 +843,7 @@ async def do_delete(self, audit_callback, id_):
     @accepts(Dict(
         'keytab_data',
         Str('name', required=True),
-    ), audit='Kerberos keytab upload:', audit_extended=lambda name, name)
+    ), audit='Kerberos keytab upload:', audit_extended=lambda name: name)
     @returns(Ref('kerberos_keytab_entry'))
     @job(lock='upload_keytab', pipes=['input'], check_pipes=True)
     async def upload_keytab(self, job, data):