Explorar o código

Add stronger deprecation warning on use of housekeeping management command

Brian Tiemann hai 1 semana
pai
achega
4ae487d0b2
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      netbox/extras/management/commands/housekeeping.py

+ 1 - 0
netbox/extras/management/commands/housekeeping.py

@@ -18,6 +18,7 @@ class Command(BaseCommand):
 
 
     def handle(self, *args, **options):
     def handle(self, *args, **options):
         self.stdout.write(
         self.stdout.write(
+            "DEPRECATION WARNING\n"
             "Running this command is no longer necessary: All housekeeping tasks\n"
             "Running this command is no longer necessary: All housekeeping tasks\n"
             "are addressed automatically via NetBox's built-in job scheduler. It\n"
             "are addressed automatically via NetBox's built-in job scheduler. It\n"
             "will be removed in a future release.",
             "will be removed in a future release.",