summaryrefslogtreecommitdiffstats
path: root/src/lib/Server
diff options
context:
space:
mode:
authorSol Jerome <solj@ices.utexas.edu>2008-07-09 19:01:06 +0000
committerSol Jerome <solj@ices.utexas.edu>2008-07-09 19:01:06 +0000
commit70b361d82ac3be583fa141c57311a97d8b2ab285 (patch)
tree3070fec858c2036ee8bc24c24379520dd13cd239 /src/lib/Server
parent796e1797d5e0fbaa89816db3bfe52637f02318de (diff)
downloadbcfg2-70b361d82ac3be583fa141c57311a97d8b2ab285.tar.gz
bcfg2-70b361d82ac3be583fa141c57311a97d8b2ab285.tar.bz2
bcfg2-70b361d82ac3be583fa141c57311a97d8b2ab285.zip
Fix tb in a couple of admin modes.
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4765 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server')
-rw-r--r--src/lib/Server/Admin/Client.py5
-rw-r--r--src/lib/Server/Admin/Query.py2
-rw-r--r--src/lib/Server/Admin/Reports.py2
3 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/Server/Admin/Client.py b/src/lib/Server/Admin/Client.py
index 1cecc0e71..a63c971fe 100644
--- a/src/lib/Server/Admin/Client.py
+++ b/src/lib/Server/Admin/Client.py
@@ -8,8 +8,9 @@ class Client(Bcfg2.Server.Admin.Mode):
def __init__(self, configfile):
Bcfg2.Server.Admin.Mode.__init__(self, configfile)
try:
- self.bcore = Bcfg2.Server.Core.Core(self.get_repo_path(), [], ['Metadata'],
- 'foo', False)
+ self.bcore = Bcfg2.Server.Core.Core(self.get_repo_path(),
+ [], ['Metadata'],
+ 'foo', False, 'UTF-8')
except Bcfg2.Server.Core.CoreInitError, msg:
self.errExit("Core load failed because %s" % msg)
[self.bcore.fam.Service() for _ in range(5)]
diff --git a/src/lib/Server/Admin/Query.py b/src/lib/Server/Admin/Query.py
index 322329bcb..9fc019a88 100644
--- a/src/lib/Server/Admin/Query.py
+++ b/src/lib/Server/Admin/Query.py
@@ -10,7 +10,7 @@ class Query(Bcfg2.Server.Admin.Mode):
try:
self.bcore = Bcfg2.Server.Core.Core(self.get_repo_path(),
[], ['Metadata'],
- 'foo', False)
+ 'foo', False, 'UTF-8')
except Bcfg2.Server.Core.CoreInitError, msg:
self.errExit("Core load failed because %s" % msg)
[self.bcore.fam.Service() for _ in range(1)]
diff --git a/src/lib/Server/Admin/Reports.py b/src/lib/Server/Admin/Reports.py
index 192afd777..1a2335703 100644
--- a/src/lib/Server/Admin/Reports.py
+++ b/src/lib/Server/Admin/Reports.py
@@ -21,6 +21,8 @@ def timecompare(client1, client2):
client2.current_interaction.timestamp)
class Reports(Bcfg2.Server.Admin.Mode):
+ __shorthelp__ = 'bcfg2-admin reports'
+ __longhelp__ = __shorthelp__ + '\n\t Command line interface for the reporting system'
def __call__(self, args):
Bcfg2.Server.Admin.Mode.__call__(self, args)