From b8b2274dab46a91c59ab1f5153baf3516bc69757 Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Tue, 10 Nov 2009 22:25:43 +0000 Subject: Reports: Fix incorrect error message (reported by Thorsten Lockert) [bugfix] Signed-off-by: Sol Jerome git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5567 ce84e21b-d406-0410-9b95-82705330c041 --- src/sbin/bcfg2-reports | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/sbin/bcfg2-reports') diff --git a/src/sbin/bcfg2-reports b/src/sbin/bcfg2-reports index cc5f89aa9..35c72f9d7 100755 --- a/src/sbin/bcfg2-reports +++ b/src/sbin/bcfg2-reports @@ -2,13 +2,10 @@ '''Query reporting system for client status''' __revision__ = '$Revision$' -import os, sys -try: - import Bcfg2.Server.Reports.settings -except: - sys.stderr.write("Failed to load configuration settings." - "is /etc/bcfg2.conf readable?") - sys.exit(1) +import os +import sys + +import Bcfg2.Server.Reports.settings project_directory = os.path.dirname(Bcfg2.Server.Reports.settings.__file__) project_name = os.path.basename(project_directory) -- cgit v1.2.3-1-g7c22