Explorar el Código

Log correct count when files were deleted

Tobias Genannt hace 2 años
padre
commit
5ff9483d13
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      netbox/core/models/data.py

+ 1 - 1
netbox/core/models/data.py

@@ -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