Skip to content

Commit

Permalink
Make sure docker service is restarted when address pools are changed
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicaj committed Sep 3, 2024
1 parent ec67484 commit 52919c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewared/middlewared/plugins/docker/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async def do_update(self, job, data):
)

if old_config != config:
if config['pool'] != old_config['pool']:
if any(config[k] != old_config[k] for k in ('pool', 'address_pools')):
job.set_progress(20, 'Stopping Docker service')
try:
await self.middleware.call('service.stop', 'docker')
Expand Down

0 comments on commit 52919c6

Please sign in to comment.