From 4eb5127d241eebf7e00409509734363af9ffa3f8 Mon Sep 17 00:00:00 2001 From: Dariusz Suchojad Date: Sun, 22 Oct 2023 03:01:29 +0200 Subject: [PATCH] GH #755 - Do not wait if nothing is missing. --- code/zato-cli/src/zato/cli/enmasse.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/zato-cli/src/zato/cli/enmasse.py b/code/zato-cli/src/zato/cli/enmasse.py index 9923a7ac29..1dbe9a43a2 100644 --- a/code/zato-cli/src/zato/cli/enmasse.py +++ b/code/zato-cli/src/zato/cli/enmasse.py @@ -2689,6 +2689,10 @@ def run_import(self) -> 'anylist': # .. such as missing services, we will keep running .. missing = self._get_missing_objects(warnings_errors) + # .. if nothing is missing, we can return as well .. + if not missing: + return warnings_errors + # .. for reporting purposes, get information on how much longer are to wait .. wait_delta = wait_until - now