Skip to content

Commit

Permalink
feat(hbi utils): Display clearer host count in exception message when…
Browse files Browse the repository at this point in the history
… not all hosts are read - display only the newly added host count for the error message to make more sense
  • Loading branch information
Smejky338 committed Oct 15, 2024
1 parent 13ec80b commit cb56db4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opl/hbi_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cb56db4

Please sign in to comment.