Revision 8c911970 snf-cyclades-app/synnefo/logic/management/commands/pool-modify.py

b/snf-cyclades-app/synnefo/logic/management/commands/pool-modify.py
31 31
# interpreted as representing official policies, either expressed
32 32
# or implied, of GRNET S.A.
33 33

  
34
from django.core.management.base import BaseCommand, CommandError
34
from django.core.management.base import CommandError
35
from snf_django.management.commands import SynnefoCommand
35 36
from optparse import make_option
36 37
from synnefo.management.common import pool_table_from_type
37 38

  
38 39
POOL_CHOICES = ['bridge', 'mac-prefix']
39 40

  
40 41

  
41
class Command(BaseCommand):
42
class Command(SynnefoCommand):
42 43
    args = "<pool ID>"
43 44
    help = "Modify a pool"
44 45
    output_transaction = True
45
    option_list = BaseCommand.option_list + (
46
    option_list = SynnefoCommand.option_list + (
46 47
        make_option('--type', dest='type',
47 48
                    choices=POOL_CHOICES,
48 49
                    help="Type of pool"

Also available in: Unified diff