Skip to content

Commit

Permalink
Make recovery attempt when initializing directory services (#15348)
Browse files Browse the repository at this point in the history
This commit changes us from using a simple health check to
actually trying to recover directory services during the
initialization step. `directoryservices.health.recover`
performs a health check first and so the change here is not
large (apart from recovery attempt).
  • Loading branch information
anodos325 authored Jan 8, 2025
1 parent 7f48064 commit 515c044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewared/middlewared/plugins/directoryservices.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ async def initialize(self, job, data=None):
except Exception:
self.logger.warning('Cache flush failed', exc_info=True)

await self.middleware.call('directoryservices.health.check')
await self.middleware.call('directoryservices.health.recover')

@private
def restart_dependent_services(self):
Expand Down

0 comments on commit 515c044

Please sign in to comment.