summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Admin/Reports.py
diff options
context:
space:
mode:
authorTim Laszlo <tim.laszlo@gmail.com>2010-06-06 11:36:59 +0000
committerSol Jerome <solj@ices.utexas.edu>2010-06-07 08:42:52 -0500
commit673eab34d1aa60b2a159bd8371f4449564fbb8cd (patch)
treeeb72026caa974a7f1a7db24bdaa9775dc02b0903 /src/lib/Server/Admin/Reports.py
parenta4c1a4a486e581009f54aa4c0afabb3d2c601e86 (diff)
downloadbcfg2-673eab34d1aa60b2a159bd8371f4449564fbb8cd.tar.gz
bcfg2-673eab34d1aa60b2a159bd8371f4449564fbb8cd.tar.bz2
bcfg2-673eab34d1aa60b2a159bd8371f4449564fbb8cd.zip
Added init command to bcfg2-admin reports
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5893 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Admin/Reports.py')
-rwxr-xr-xsrc/lib/Server/Admin/Reports.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Server/Admin/Reports.py b/src/lib/Server/Admin/Reports.py
index 5d0595869..21b8d8d80 100755
--- a/src/lib/Server/Admin/Reports.py
+++ b/src/lib/Server/Admin/Reports.py
@@ -50,6 +50,7 @@ class Reports(Bcfg2.Server.Admin.Mode):
" -q|--quiet Print only errors\n"
"\n"
" Commands:\n"
+ " init Initialize the database\n"
" load_stats Load statistics data\n"
" -s|--stats Path to statistics.xml file\n"
" -c|--clients-file Path to clients.xml file\n"
@@ -85,6 +86,8 @@ class Reports(Bcfg2.Server.Admin.Mode):
self.django_command_proxy(args[0])
elif args[0] == 'scrub':
self.scrub()
+ elif args[0] == 'init':
+ update_database()
elif args[0] == 'update':
update_database()
elif args[0] == 'load_stats':