summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoey Hagedorn <hagedorn@mcs.anl.gov>2006-05-31 18:56:09 +0000
committerJoey Hagedorn <hagedorn@mcs.anl.gov>2006-05-31 18:56:09 +0000
commitfdbc37924fcbd5a2ea3eeadf098e99fc652c805a (patch)
tree5e0171f3f35eb34c2e69cd543664e6af1d53d7ab /src
parent0792c96cd53bb310d1d3da18bc8d7ef5015280d0 (diff)
downloadbcfg2-fdbc37924fcbd5a2ea3eeadf098e99fc652c805a.tar.gz
bcfg2-fdbc37924fcbd5a2ea3eeadf098e99fc652c805a.tar.bz2
bcfg2-fdbc37924fcbd5a2ea3eeadf098e99fc652c805a.zip
Added auto-refreshing feature to reports; specifiable by config file.
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1867 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rwxr-xr-xsrc/sbin/StatReports5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sbin/StatReports b/src/sbin/StatReports
index 82a588470..341d3f310 100755
--- a/src/sbin/StatReports
+++ b/src/sbin/StatReports
@@ -198,7 +198,6 @@ if __name__ == '__main__':
#Merge data from three sources
nodereport = Element("Report", attrib={"time" : asctime()})
-
#should all of the other info in Metadata be appended?
#What about all of the package stuff for other types of reports?
@@ -216,6 +215,10 @@ if __name__ == '__main__':
for reprt in configdata.findall('Report'):
nodereport.set("name", reprt.get("name", default="BCFG Report"))
+ if reprt.get('refresh-time') != None:
+ nodereport.set("refresh-time",reprt.get("refresh-time", default="600"))
+
+
procnodereport = generatereport(reprt, nodereport)
for deliv in reprt.findall('Delivery'):