summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2008-07-12 22:16:46 +0000
committerNarayan Desai <desai@mcs.anl.gov>2008-07-12 22:16:46 +0000
commit70b4dff4e62b0611db8687c3f0a124db99f5f8ed (patch)
treee204c2779e3b9ff70236cf12bed42269b4da101f
parent78d5ee44541d946208821646526857a400da005f (diff)
downloadbcfg2-70b4dff4e62b0611db8687c3f0a124db99f5f8ed.tar.gz
bcfg2-70b4dff4e62b0611db8687c3f0a124db99f5f8ed.tar.bz2
bcfg2-70b4dff4e62b0611db8687c3f0a124db99f5f8ed.zip
Add default value for web_debug (Resolves Ticket #537)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4780 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Server/Reports/settings.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/Server/Reports/settings.py b/src/lib/Server/Reports/settings.py
index 9c3d878ed..66f774f2d 100644
--- a/src/lib/Server/Reports/settings.py
+++ b/src/lib/Server/Reports/settings.py
@@ -3,7 +3,12 @@ from ConfigParser import ConfigParser, NoSectionError, NoOptionError
c = ConfigParser()
c.read(['/etc/bcfg2.conf', '/etc/bcfg2-web.conf'])
-if c.get('statistics', 'web_debug') == "True":
+try:
+ dset = c.get('statistics', 'web_debug')
+except:
+ dset = 'false'
+
+if dset == "True":
DEBUG = True
else:
DEBUG = False