From 482d4c952bca5e466b92354e42f478ff8295241f Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Tue, 13 Jan 2009 18:04:24 +0000 Subject: Update bcfg2-admin query to use new Core interface git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5020 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Admin/Pull.py | 2 +- src/lib/Server/Admin/Query.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/Server/Admin/Pull.py b/src/lib/Server/Admin/Pull.py index a8113f233..51672c912 100644 --- a/src/lib/Server/Admin/Pull.py +++ b/src/lib/Server/Admin/Pull.py @@ -8,7 +8,7 @@ class Pull(Bcfg2.Server.Admin.MetadataCore): ''' __shorthelp__ = ("Integrate configuration information " "from clients into the server repository") - __longhelp__ = (__shorthelp__ + "\n\nbcfg2-admin pull [-v] [-f][-I]" + __longhelp__ = (__shorthelp__ + "\n\nbcfg2-admin pull [-v] [-f][-I] " " ") __usage__ = ("bcfg2-admin pull [options] " "\n\n" diff --git a/src/lib/Server/Admin/Query.py b/src/lib/Server/Admin/Query.py index 76f15948b..24847d74e 100644 --- a/src/lib/Server/Admin/Query.py +++ b/src/lib/Server/Admin/Query.py @@ -20,8 +20,8 @@ class Query(Bcfg2.Server.Admin.Mode): Bcfg2.Logger.setup_logging(100, to_console=False, to_syslog=False) Bcfg2.Server.Admin.Mode.__init__(self, cfile) try: - self.bcore = Bcfg2.Server.Core.Core(self.get_repo_path(), [], - [], [], + 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) -- cgit v1.2.3-1-g7c22