Skip to content

Commit

Permalink
Always output all counts to logfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ggatward committed Oct 10, 2017
1 parent f9e13b8 commit 1c078f3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sat_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -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...'
Expand Down

0 comments on commit 1c078f3

Please sign in to comment.