Revision 8c911970 snf-cyclades-app/synnefo/quotas/management/commands/reconcile-resources-cyclades.py
b/snf-cyclades-app/synnefo/quotas/management/commands/reconcile-resources-cyclades.py | ||
---|---|---|
32 | 32 |
# or implied, of GRNET S.A. |
33 | 33 |
|
34 | 34 |
from datetime import datetime |
35 |
from django.core.management.base import BaseCommand
|
|
35 |
from snf_django.management.commands import SynnefoCommand
|
|
36 | 36 |
from optparse import make_option |
37 | 37 |
|
38 | 38 |
from synnefo import quotas |
... | ... | |
41 | 41 |
from snf_django.utils import reconcile |
42 | 42 |
|
43 | 43 |
|
44 |
class Command(BaseCommand):
|
|
44 |
class Command(SynnefoCommand):
|
|
45 | 45 |
help = """Reconcile resource usage of Astakos with Cyclades DB. |
46 | 46 |
|
47 | 47 |
Detect unsynchronized usage between Astakos and Cyclades DB resources and |
48 | 48 |
synchronize them if specified so. |
49 | 49 |
|
50 | 50 |
""" |
51 |
option_list = BaseCommand.option_list + (
|
|
51 |
option_list = SynnefoCommand.option_list + (
|
|
52 | 52 |
make_option("--userid", dest="userid", |
53 | 53 |
default=None, |
54 | 54 |
help="Reconcile resources only for this user"), |
Also available in: Unified diff