diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2006-08-22 19:04:53 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2006-08-22 19:04:53 +0000 |
commit | 0116c890c13934f272a198927f736e641c7b343d (patch) | |
tree | bc94b0dfc4de43b9db547b5f68e6395ecfeea25c /src/sbin | |
parent | 056236b06f0fa05400bfc88b6aa7370955bc7fc7 (diff) | |
download | bcfg2-0116c890c13934f272a198927f736e641c7b343d.tar.gz bcfg2-0116c890c13934f272a198927f736e641c7b343d.tar.bz2 bcfg2-0116c890c13934f272a198927f736e641c7b343d.zip |
Make StatReports look at server::prefix (Resolves Ticket #95)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2086 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin')
-rwxr-xr-x | src/sbin/StatReports | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sbin/StatReports b/src/sbin/StatReports index d7eed5bcd..f5976da63 100755 --- a/src/sbin/StatReports +++ b/src/sbin/StatReports @@ -151,7 +151,12 @@ if __name__ == '__main__': configpath = "%s/etc/report-configuration.xml" % c.get('server', 'repository') statpath = "%s/etc/statistics.xml" % c.get('server', 'repository') clientsdatapath = "%s/Metadata/clients.xml" % c.get('server', 'repository') - transformpath = "/usr/share/bcfg2/xsl-transforms/" + try: + prefix = c.get('server', 'prefix') + except (NoSectionError, NoOptionError): + prefix = '/usr' + + transformpath = "/%s/share/bcfg2/xsl-transforms/" % (prefix) #websrcspath = "/usr/share/bcfg2/web-rprt-srcs/" try: |