diff options
author | Sol Jerome <solj@ices.utexas.edu> | 2009-11-10 22:25:43 +0000 |
---|---|---|
committer | Sol Jerome <solj@ices.utexas.edu> | 2009-11-10 22:25:43 +0000 |
commit | b8b2274dab46a91c59ab1f5153baf3516bc69757 (patch) | |
tree | 29e3b365d1852b960c49c551ce0548eec2d86637 /src/sbin/bcfg2-reports | |
parent | 681b0127f678f4c0f372c9e9fde519a5f343dc7a (diff) | |
download | bcfg2-b8b2274dab46a91c59ab1f5153baf3516bc69757.tar.gz bcfg2-b8b2274dab46a91c59ab1f5153baf3516bc69757.tar.bz2 bcfg2-b8b2274dab46a91c59ab1f5153baf3516bc69757.zip |
Reports: Fix incorrect error message (reported by Thorsten Lockert) [bugfix]
Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5567 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin/bcfg2-reports')
-rwxr-xr-x | src/sbin/bcfg2-reports | 11 |
1 files changed, 4 insertions, 7 deletions
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) |