From cb56db44ea7d61b17962684b58fd0646b435c900 Mon Sep 17 00:00:00 2001 From: Jan Smejkal Date: Tue, 15 Oct 2024 13:58:45 +0200 Subject: [PATCH] feat(hbi utils): Display clearer host count in exception message when not all hosts are read - display only the newly added host count for the error message to make more sense --- opl/hbi_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opl/hbi_utils.py b/opl/hbi_utils.py index 471726c..40c670c 100644 --- a/opl/hbi_utils.py +++ b/opl/hbi_utils.py @@ -141,7 +141,7 @@ def verify(args, previous_records, status_data, inventory, collect_info): attempt += 1 if attempt > attempts_max: raise Exception( - f"After {attempt} attempts, we only have {existing_ids} out of {args.count}" + f"After {attempt} attempts, we only have {existing_ids-previous_records} out of {args.count}" ) # If there were no new hosts now, wait a bit