Commit 42f34783 authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

mirrorresolv: update to Djang 1.10

Update to BaseCommand.
parent a73e8d1a
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
Usage: ./manage.py mirrorresolv Usage: ./manage.py mirrorresolv
""" """
from django.core.management.base import NoArgsCommand from django.core.management.base import BaseCommand
import sys import sys
import logging import logging
...@@ -23,10 +23,10 @@ ...@@ -23,10 +23,10 @@
stream=sys.stderr) stream=sys.stderr)
logger = logging.getLogger() logger = logging.getLogger()
class Command(NoArgsCommand): class Command(BaseCommand):
help = "Runs a check on all active mirror URLs to determine if they are reachable via IPv4 and/or v6." help = "Runs a check on all active mirror URLs to determine if they are reachable via IPv4 and/or v6."
def handle_noargs(self, **options): def handle(self, **options):
v = int(options.get('verbosity', 0)) v = int(options.get('verbosity', 0))
if v == 0: if v == 0:
logger.level = logging.ERROR logger.level = logging.ERROR
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment