1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Merge pull request #12139 from tobiasge/fix-data-source-logs

Fix #12138: Log correct count when files were deleted
This commit is contained in:
kkthxbye
2023-04-02 22:29:59 +02:00
committed by GitHub

View File

@@ -176,7 +176,7 @@ class DataSource(JobsMixin, PrimaryModel):
# Bulk delete deleted files # Bulk delete deleted files
deleted_count, _ = DataFile.objects.filter(pk__in=deleted_file_ids).delete() deleted_count, _ = DataFile.objects.filter(pk__in=deleted_file_ids).delete()
logger.debug(f"Deleted {updated_count} files") logger.debug(f"Deleted {deleted_count} files")
# Walk the local replication to find new files # Walk the local replication to find new files
new_paths = self._walk(local_path) - known_paths new_paths = self._walk(local_path) - known_paths