summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTim Laszlo <tim.laszlo@gmail.com>2012-10-09 10:20:04 -0500
committerTim Laszlo <tim.laszlo@gmail.com>2012-10-09 10:20:04 -0500
commit5301a90168f910b47401996a7ad6afbea0b08ac0 (patch)
treee6f53bb14f39ad34d10f79ed178ac7bf06c29b16 /src
parent44ae3c594e13eded116bba977ce1a0bb692906d5 (diff)
downloadbcfg2-5301a90168f910b47401996a7ad6afbea0b08ac0.tar.gz
bcfg2-5301a90168f910b47401996a7ad6afbea0b08ac0.tar.bz2
bcfg2-5301a90168f910b47401996a7ad6afbea0b08ac0.zip
Admin.Reports: Map syncdb to update as the migration command is now required with south
Diffstat (limited to 'src')
-rw-r--r--src/lib/Bcfg2/Server/Admin/Reports.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/Bcfg2/Server/Admin/Reports.py b/src/lib/Bcfg2/Server/Admin/Reports.py
index 61ec99e7e..a2c3b59b0 100644
--- a/src/lib/Bcfg2/Server/Admin/Reports.py
+++ b/src/lib/Bcfg2/Server/Admin/Reports.py
@@ -63,7 +63,7 @@ class Reports(Bcfg2.Server.Admin.Mode):
'''Admin interface for dynamic reports'''
__shorthelp__ = "Manage dynamic reports"
__longhelp__ = (__shorthelp__)
- django_commands = ['dbshell', 'shell', 'syncdb', 'sqlall', 'validate']
+ django_commands = ['dbshell', 'shell', 'sqlall', 'validate']
__usage__ = ("bcfg2-admin reports [command] [options]\n"
"\n"
" Commands:\n"
@@ -97,9 +97,11 @@ class Reports(Bcfg2.Server.Admin.Mode):
self.django_command_proxy(args[0])
elif args[0] == 'scrub':
self.scrub()
- elif args[0] in ['init', 'update']:
- if self.setup['verbose'] or self.setup['debug']:
+ elif args[0] in ['init', 'update', 'syncdb']:
+ if self.setup['debug']:
vrb = 2
+ elif self.setup['verbose']:
+ vrb = 1
else:
vrb = 0
try: