Revision 8c911970 snf-cyclades-app/synnefo/logic/management/commands/subnet-inspect.py
b/snf-cyclades-app/synnefo/logic/management/commands/subnet-inspect.py | ||
---|---|---|
33 | 33 |
|
34 | 34 |
from optparse import make_option |
35 | 35 |
|
36 |
from django.core.management.base import BaseCommand, CommandError |
|
36 |
from django.core.management.base import CommandError |
|
37 |
from snf_django.management.commands import SynnefoCommand |
|
37 | 38 |
from synnefo.management import pprint, common |
38 | 39 |
|
39 | 40 |
|
40 |
class Command(BaseCommand):
|
|
41 |
class Command(SynnefoCommand):
|
|
41 | 42 |
help = "Inspect a subnet on DB and Ganeti." |
42 | 43 |
args = "<Subnet ID>" |
43 |
option_list = BaseCommand.option_list
|
|
44 |
option_list = SynnefoCommand.option_list
|
|
44 | 45 |
|
45 | 46 |
def handle(self, *args, **options): |
46 | 47 |
if len(args) != 1: |
Also available in: Unified diff