summaryrefslogtreecommitdiffstats
path: root/src/sbin/StatReports
diff options
context:
space:
mode:
authorJoey Hagedorn <hagedorn@mcs.anl.gov>2006-01-09 23:12:33 +0000
committerJoey Hagedorn <hagedorn@mcs.anl.gov>2006-01-09 23:12:33 +0000
commit0f95b5db21e8a9247834befa21fe56b8d9f7e16e (patch)
tree90e6f8e333535a7807f1594467d4195ad564af9d /src/sbin/StatReports
parente1ba4d1443e2fae8b626d5282dd633aab2144dcb (diff)
downloadbcfg2-0f95b5db21e8a9247834befa21fe56b8d9f7e16e.tar.gz
bcfg2-0f95b5db21e8a9247834befa21fe56b8d9f7e16e.tar.bz2
bcfg2-0f95b5db21e8a9247834befa21fe56b8d9f7e16e.zip
made changes to get rid of hostinfo.xml file have GenerateHostInfo update clients.xml
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1659 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin/StatReports')
-rw-r--r--src/sbin/StatReports15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/sbin/StatReports b/src/sbin/StatReports
index 439998718..d08d38a57 100644
--- a/src/sbin/StatReports
+++ b/src/sbin/StatReports
@@ -30,8 +30,7 @@ def generatereport(rspec, nrpt):
pattern = re.compile( '|'.join([item.get("name") for item in reportspec.findall('Machine')]))
for node in nodereprt.findall('Node'):
- if not (node.findall("HostInfo") and node.findall("Statistics") and
- node.find("HostInfo").get("fqdn") and pattern.match(node.get('name'))):
+ if not (node.findall("Statistics") and pattern.match(node.get('name'))):
# don't know enough about node
nodereprt.remove(node)
continue
@@ -173,12 +172,12 @@ if __name__ == '__main__':
#See if hostinfo.xml exists, and is less than 23.5 hours old
- try:
- hostinstat = os.stat(hostinfopath)
- if (time() - hostinstat[9])/(60*60) > 23.5:
- os.system('GenerateHostInfo')#Generate HostInfo needs to be in path
- except OSError:
- os.system('GenerateHostInfo')#Generate HostInfo needs to be in path
+ #try:
+ #hostinstat = os.stat(hostinfopath)
+ #if (time() - hostinstat[9])/(60*60) > 23.5:
+ os.system('GenerateHostInfo')#Generate HostInfo needs to be in path
+ #except OSError:
+ # os.system('GenerateHostInfo')#Generate HostInfo needs to be in path
'''Reads Data & Config files'''