Revision 8c911970 snf-cyclades-app/synnefo/logic/management/commands/reconcile-networks.py
b/snf-cyclades-app/synnefo/logic/management/commands/reconcile-networks.py | ||
---|---|---|
36 | 36 |
""" |
37 | 37 |
import logging |
38 | 38 |
from optparse import make_option |
39 |
from django.core.management.base import BaseCommand
|
|
39 |
from snf_django.management.commands import SynnefoCommand
|
|
40 | 40 |
from synnefo.logic import reconciliation |
41 | 41 |
|
42 | 42 |
|
43 |
class Command(BaseCommand):
|
|
43 |
class Command(SynnefoCommand):
|
|
44 | 44 |
help = """Reconcile contents of Synnefo DB with state of Ganeti backend |
45 | 45 |
|
46 | 46 |
Network reconciliation can detect and fix the following cases: |
... | ... | |
53 | 53 |
""" |
54 | 54 |
|
55 | 55 |
can_import_settings = True |
56 |
option_list = BaseCommand.option_list + (
|
|
56 |
option_list = SynnefoCommand.option_list + (
|
|
57 | 57 |
make_option('--fix-all', action='store_true', |
58 | 58 |
dest='fix', default=False, |
59 | 59 |
help='Fix all issues.'), |
Also available in: Unified diff