Revision 8c911970 snf-cyclades-app/synnefo/logic/management/commands/server-create.py
b/snf-cyclades-app/synnefo/logic/management/commands/server-create.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 common, pprint |
38 | 39 |
from snf_django.management.utils import parse_bool |
39 | 40 |
|
... | ... | |
47 | 48 |
""" |
48 | 49 |
|
49 | 50 |
|
50 |
class Command(BaseCommand):
|
|
51 |
class Command(SynnefoCommand):
|
|
51 | 52 |
help = "Create a new VM." + HELP_MSG |
52 | 53 |
|
53 |
option_list = BaseCommand.option_list + (
|
|
54 |
option_list = SynnefoCommand.option_list + (
|
|
54 | 55 |
make_option("--backend-id", dest="backend_id", |
55 | 56 |
help="Unique identifier of the Ganeti backend." |
56 | 57 |
" Use snf-manage backend-list to find out" |
Also available in: Unified diff