From 1c078f31b7b602ed0ff61d39a65256343667608a Mon Sep 17 00:00:00 2001 From: Geoff Date: Wed, 11 Oct 2017 07:17:17 +1100 Subject: [PATCH] Always output all counts to logfile --- sat_import.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sat_import.py b/sat_import.py index e5dc234..44327d4 100644 --- a/sat_import.py +++ b/sat_import.py @@ -234,13 +234,12 @@ def check_counts(org_id, package_count, count): if count: display_data = True table_data.append([colour, repo[:70], str(sync_pkgs), str(local_pkgs), helpers.ENDC]) - logtable_data.append([repo[:70], str(sync_pkgs), str(local_pkgs)]) else: # Otherwise only add counts that are non-green (display = True) if display: table_data.append([colour, repo[:70], str(sync_pkgs), str(local_pkgs), helpers.ENDC]) - logtable_data.append([repo[:70], str(sync_pkgs), str(local_pkgs)]) - + # Always log all package data to the log regardless of 'count' + logtable_data.append([repo[:70], str(sync_pkgs), str(local_pkgs)]) if display_data: msg = '\nRepository package mismatch count verification...'