From 3aa7b46f72d4868de5caa817ba2fdcc140d97628 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Mon, 18 May 2020 20:42:20 +0200 Subject: [PATCH 2/2] misc: do not wait already deployed SP (#43035) --- hobo/agent/authentic2/management/commands/hobo_deploy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hobo/agent/authentic2/management/commands/hobo_deploy.py b/hobo/agent/authentic2/management/commands/hobo_deploy.py index 12bc4d0..e2dabbe 100644 --- a/hobo/agent/authentic2/management/commands/hobo_deploy.py +++ b/hobo/agent/authentic2/management/commands/hobo_deploy.py @@ -228,7 +228,7 @@ class Command(hobo_deploy.Command): service['$done'] = True loaded += 1 - if len(services) == loaded: + if all(service.get('$done') for service in services): # it's finished no need to continue break -- 2.26.2