From 52919c68103a079214d07b9d44aa5429fa8440b3 Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Tue, 3 Sep 2024 22:23:18 +0500 Subject: [PATCH] Make sure docker service is restarted when address pools are changed --- src/middlewared/middlewared/plugins/docker/update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middlewared/middlewared/plugins/docker/update.py b/src/middlewared/middlewared/plugins/docker/update.py index a7f0614950744..3b5dae4e7f661 100644 --- a/src/middlewared/middlewared/plugins/docker/update.py +++ b/src/middlewared/middlewared/plugins/docker/update.py @@ -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')