summaryrefslogtreecommitdiffstats
path: root/lib/puppet/transaction
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-07-04 16:43:16 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-07-04 16:43:16 +0000
commite17f4ed1d9e4011b0d7ccca35f3ff16541f05f26 (patch)
tree10025f7d877e3a3ff7a8d8be2d2f49b3a46545b4 /lib/puppet/transaction
parent1503b42c46d28e6bbb965c97fecd90b765e4356a (diff)
downloadpuppet-e17f4ed1d9e4011b0d7ccca35f3ff16541f05f26.tar.gz
puppet-e17f4ed1d9e4011b0d7ccca35f3ff16541f05f26.tar.xz
puppet-e17f4ed1d9e4011b0d7ccca35f3ff16541f05f26.zip
adding host information to reports and tagmail report
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1361 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/transaction')
-rw-r--r--lib/puppet/transaction/report.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/puppet/transaction/report.rb b/lib/puppet/transaction/report.rb
index cca1a90f2..2a81251a3 100644
--- a/lib/puppet/transaction/report.rb
+++ b/lib/puppet/transaction/report.rb
@@ -5,7 +5,7 @@ require 'puppet'
# change produces, and Metrics are all of the numerical data involved
# in the transaction.
class Puppet::Transaction::Report
- attr_accessor :logs, :metrics, :time
+ attr_accessor :logs, :metrics, :time, :host
def initialize
@metrics = {}
@@ -14,6 +14,8 @@ class Puppet::Transaction::Report
@records = Hash.new do |hash, key|
hash[key] = []
end
+
+ @host = [Facter.value("hostname"), Facter.value("domain")].join(".")
end
# Create a new metric.