summaryrefslogtreecommitdiffstats
path: root/lib/puppet/reports/rrdgraph.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/reports/rrdgraph.rb')
-rw-r--r--lib/puppet/reports/rrdgraph.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/puppet/reports/rrdgraph.rb b/lib/puppet/reports/rrdgraph.rb
index 03d8a5bdd..5889750dd 100644
--- a/lib/puppet/reports/rrdgraph.rb
+++ b/lib/puppet/reports/rrdgraph.rb
@@ -90,8 +90,9 @@ Puppet::Reports.register_report(:rrdgraph) do
of.puts "<html><head><title>Report graphs for %s</title></head><body>" %
host
files.each do |file|
- of.puts "<a href='#{File.basename(file)}'>%s</a><br/>" %
- File.basename(file).sub(".html",'').capitalize
+ of.puts "<a href='%s'>%s</a><br/>" %
+ [File.basename(file),
+ File.basename(file).sub(".html",'').capitalize]
end
of.puts "</body></html>"
end