diff --git a/src/middlewared/middlewared/plugins/tunables.py b/src/middlewared/middlewared/plugins/tunables.py index 77efe6894b101..f0f60b50efc53 100644 --- a/src/middlewared/middlewared/plugins/tunables.py +++ b/src/middlewared/middlewared/plugins/tunables.py @@ -105,7 +105,7 @@ async def tunable_type_choices(self): Bool('enabled', default=True), Bool('update_initramfs', default=True), register=True - )) + ), audit='Tunable create') @job(lock='tunable_crud') async def do_create(self, job, data): """ @@ -183,7 +183,8 @@ async def do_create(self, job, data): ('rm', {'name': 'type'}), ('rm', {'name': 'var'}), ('attr', {'update': True}), - ) + ), + audit='Tunable update' ) @job(lock='tunable_crud') async def do_update(self, job, id_, data): @@ -224,6 +225,7 @@ async def do_update(self, job, id_, data): return await self.get_instance(id_) + @accepts(Int('id', required=True), audit='Tunable delete') @job(lock='tunable_crud') async def do_delete(self, job, id_): """