From 3f71d210c63e46b79b0f04a0463d0a218a3a8862 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Fri, 15 Sep 2006 02:44:27 +0000 Subject: Change all references from StatReports to bcfg2-build-reports git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2256 ce84e21b-d406-0410-9b95-82705330c041 --- src/sbin/StatReports | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'src/sbin/StatReports') diff --git a/src/sbin/StatReports b/src/sbin/StatReports index 11dd84969..722c563c0 100755 --- a/src/sbin/StatReports +++ b/src/sbin/StatReports @@ -1,9 +1,6 @@ #!/usr/bin/env python -#Jun 7 2005 -#StatReports - Joey Hagedorn - hagedorn@mcs.anl.gov - -'''StatReports Generates & distributes reports of statistic information +'''bcfg2-build-reports Generates & distributes reports of statistic information for bcfg2''' __revision__ = '$Revision$' @@ -163,11 +160,11 @@ if __name__ == '__main__': opts, args = getopt.getopt(sys.argv[1:], "C:hc:s:", ["help", "config=", "stats="]) except getopt.GetoptError, mesg: # print help information and exit: - print "%s\nUsage:\nStatReports.py [-h] [-c ] [-s ]" % (mesg) + print "%s\nUsage:\nbcfg2-build-reports [-h] [-c ] [-s ]" % (mesg) raise SystemExit, 2 for o, a in opts: if o in ("-h", "--help"): - print "Usage:\nStatReports.py [-h] [-c ] [-s ]" + print "Usage:\nbcfg2-build-reports [-h] [-c ] [-s ]" raise SystemExit if o in ("-c", "--config"): configpath = a @@ -188,17 +185,17 @@ if __name__ == '__main__': try: statsdata = XML(open(statpath).read()) except (IOError, XMLSyntaxError): - print("StatReports: Failed to parse %s"%(statpath)) + print("bcfg2-build-reports: Failed to parse %s"%(statpath)) raise SystemExit, 1 try: configdata = XML(open(configpath).read()) except (IOError, XMLSyntaxError): - print("StatReports: Failed to parse %s"%(configpath)) + print("bcfg2-build-reports: Failed to parse %s"%(configpath)) raise SystemExit, 1 try: clientsdata = XML(open(clientsdatapath).read()) except (IOError, XMLSyntaxError): - print("StatReports: Failed to parse %s"%(clientsdatapath)) + print("bcfg2-build-reports: Failed to parse %s"%(clientsdatapath)) raise SystemExit, 1 #Merge data from three sources @@ -241,14 +238,14 @@ if __name__ == '__main__': try: #make sure valid stylesheet is selected os.stat(transformpath + transform) except: - print("StatReports: Invalid report type or delivery mechanism.\n Can't find: "\ + print("bcfg2-build-reports: Invalid report type or delivery mechanism.\n Can't find: "\ + transformpath + transform) raise SystemExit, 1 try: #try to parse stylesheet stylesheet = XSLT(parse(transformpath + transform)) except: - print("StatReports: invalid XSLT transform file.") + print("bcfg2-build-reports: invalid XSLT transform file.") raise SystemExit, 1 if deliverymechanism == 'mail': -- cgit v1.2.3-1-g7c22