[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, master, updated. debian/0.24.6-1-356-g5718585

James Turnbull james at lovedthanlost.net
Fri Jan 23 14:20:47 UTC 2009


The following commit has been merged in the master branch:
commit fb8cc533ad1da65de0b4769ab3b44112c9ff68c6
Author: James Turnbull <james at lovedthanlost.net>
Date:   Sat Aug 16 02:01:41 2008 +1000

    Fixed #1442 - replaced use of Facter for report titling with certname

diff --git a/CHANGELOG b/CHANGELOG
index eb22e6b..4282f0e 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,6 @@
 0.24.x
+    Fixed #1442 - replaced use of Facter for report titling with certname
+
     Fixed $1456 - add proxy configuration capability to yum repo
 
     Fixed #1457 - removed confine warning
diff --git a/lib/puppet/transaction/report.rb b/lib/puppet/transaction/report.rb
index bd62ebb..89da7ed 100644
--- a/lib/puppet/transaction/report.rb
+++ b/lib/puppet/transaction/report.rb
@@ -25,13 +25,7 @@ class Puppet::Transaction::Report
             hash[key] = []
         end
 
-        domain = Facter.value("domain")
-        hostname = Facter.value("hostname")
-        if !domain || domain.empty? then
-            @host = hostname
-        else
-            @host = [hostname, domain].join(".")
-        end
+        @host = Puppet[:certname]
     end
 
     def name

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list