diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-07-04 16:43:16 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-07-04 16:43:16 +0000 |
| commit | e17f4ed1d9e4011b0d7ccca35f3ff16541f05f26 (patch) | |
| tree | 10025f7d877e3a3ff7a8d8be2d2f49b3a46545b4 /lib/puppet/transaction | |
| parent | 1503b42c46d28e6bbb965c97fecd90b765e4356a (diff) | |
| download | puppet-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.rb | 4 |
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. |
