aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
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