aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorsconklin <sconklin@ef72aa8b-4018-0410-8976-d6e080ef94d8>2006-07-17 18:35:09 +0000
committersconklin <sconklin@ef72aa8b-4018-0410-8976-d6e080ef94d8>2006-07-17 18:35:09 +0000
commitabfe72dbf66581eee17ef1cab556a4d234166068 (patch)
tree62aefd803a5e3f8628ba03a2ef406eba69bfd445 /src/lib
parentcb11a1182cfa598f78269c835b22b9ecf790efa5 (diff)
downloadsos-abfe72dbf66581eee17ef1cab556a4d234166068.tar.gz
Fixed a problem with html links in the report to
output of commands run in plugins, increment release. git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@29 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/sos/plugintools.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/sos/plugintools.py b/src/lib/sos/plugintools.py
index 1a0fd9d4..b4aa9cf3 100644
--- a/src/lib/sos/plugintools.py
+++ b/src/lib/sos/plugintools.py
@@ -278,8 +278,10 @@ class PluginBase:
# Command Output
if len(self.executedCommands):
html = html + "<p>Commands Executed:<br><ul>\n"
+ # convert file name to relative path from our root
for cmd in self.executedCommands:
- html = html + '<li><a href="%s">%s</a></li>\n' % (cmd['file'], cmd['exe'])
+ cmdOutRelPath = sosRelPath(self.cInfo['rptdir'], cmd['file'])
+ html = html + '<li><a href="%s">%s</a></li>\n' % (cmdOutRelPath, cmd['exe'])
html = html + "</ul></p>\n"
# Alerts