Skip to content

Commit

Permalink
Reload iscsitarget on iscsi.auth.delete (#15006)
Browse files Browse the repository at this point in the history
(cherry picked from commit 510930b)
  • Loading branch information
bmeagherix committed Nov 21, 2024
1 parent 13d63ca commit 93f4e25
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/middlewared/middlewared/plugins/iscsi_/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,12 @@ async def do_delete(self, audit_callback, id_):
if usages['in_use']:
raise CallError(usages['usages'])

return await self.middleware.call(
result = await self.middleware.call(
'datastore.delete', self._config.datastore, id_
)
await self._service_change('iscsitarget', 'reload')

return result

@private
async def is_in_use_by_portals_targets(self, id_):
Expand Down

0 comments on commit 93f4e25

Please sign in to comment.