From 5301a90168f910b47401996a7ad6afbea0b08ac0 Mon Sep 17 00:00:00 2001 From: Tim Laszlo Date: Tue, 9 Oct 2012 10:20:04 -0500 Subject: Admin.Reports: Map syncdb to update as the migration command is now required with south --- src/lib/Bcfg2/Server/Admin/Reports.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/lib/Bcfg2/Server/Admin') 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: -- cgit v1.2.3-1-g7c22