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

Log correct count when files were deleted

This commit is contained in:
Tobias Genannt
2023-04-01 10:43:41 +02:00
parent 8d6c591535
commit 5ff9483d13

View File

@@ -176,7 +176,7 @@ class DataSource(JobsMixin, PrimaryModel):
# Bulk delete deleted files
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
new_paths = self._walk(local_path) - known_paths