Revision b6426ead snf-cyclades-app/synnefo/logic/management/commands/reconcile-servers.py
b/snf-cyclades-app/synnefo/logic/management/commands/reconcile-servers.py | ||
---|---|---|
38 | 38 |
import logging |
39 | 39 |
import subprocess |
40 | 40 |
from optparse import make_option |
41 |
from django.core.management.base import BaseCommand |
|
41 |
|
|
42 |
from snf_django.management.commands import SynnefoCommand |
|
42 | 43 |
from synnefo.management.common import get_resource |
43 | 44 |
from synnefo.logic import reconciliation |
44 | 45 |
from snf_django.management.utils import parse_bool |
45 | 46 |
|
46 | 47 |
|
47 |
class Command(BaseCommand):
|
|
48 |
class Command(SynnefoCommand):
|
|
48 | 49 |
can_import_settings = True |
49 | 50 |
|
50 | 51 |
help = 'Reconcile contents of Synnefo DB with state of Ganeti backend' |
51 |
option_list = BaseCommand.option_list + (
|
|
52 |
option_list = SynnefoCommand.option_list + (
|
|
52 | 53 |
make_option('--backend-id', default=None, dest='backend-id', |
53 | 54 |
help='Reconcilie VMs only for this backend'), |
54 | 55 |
make_option("--parallel", |
Also available in: Unified diff