diff options
Diffstat (limited to 'src/lib/Server/Admin/Reports.py')
-rwxr-xr-x | src/lib/Server/Admin/Reports.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/Server/Admin/Reports.py b/src/lib/Server/Admin/Reports.py index e4cbae8e1..e712ae77d 100755 --- a/src/lib/Server/Admin/Reports.py +++ b/src/lib/Server/Admin/Reports.py @@ -5,6 +5,7 @@ import ConfigParser import os import logging import pickle +import platform import sys from Bcfg2.Server.Reports.importscript import load_stats from Bcfg2.Server.Reports.updatefix import update_database @@ -181,9 +182,5 @@ class Reports(Bcfg2.Server.Admin.Mode): except (IOError, XMLSyntaxError): self.errExit("StatReports: Failed to parse %s"%(clientspath)) - try: - location = self.cfp.get('components', 'bcfg2') - except (ConfigParser.NoSectionError, ConfigParser.NoOptionError): - self.errExit("Could not read bcfg2 from bcfg2.conf; exiting") - load_stats(clientsdata, statsdata, verb, self.log, quick=quick, location=location) + load_stats(clientsdata, statsdata, verb, self.log, quick=quick, location=platform.node()) |