[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. puppet-0.24.5-rc3-1601-gf8c1b08

Peter Meier peter.meier at immerda.ch
Fri Jan 15 09:08:26 UTC 2010


The following commit has been merged in the upstream branch:
commit 4d815117672a6f27ff368c9485edb4edf49e63aa
Author: Peter Meier <peter.meier at immerda.ch>
Date:   Fri Dec 25 18:58:43 2009 +0100

    fix #2987 - check correct hash entry
    
    It looks like something got lost during transition to host_aliases.

diff --git a/lib/puppet/provider/host/parsed.rb b/lib/puppet/provider/host/parsed.rb
index 56caf8b..f3e7630 100644
--- a/lib/puppet/provider/host/parsed.rb
+++ b/lib/puppet/provider/host/parsed.rb
@@ -59,7 +59,7 @@ Puppet::Type.type(:host).provide(:parsed,
         str = "%s\t%s" % [hash[:ip], hash[:name]]
 
         if hash.include? :host_aliases
-            if hash[:alias].is_a? Array
+            if hash[:host_aliases].is_a? Array
                 str += "\t%s" % hash[:host_aliases].join("\t")
             else
                 raise ArgumentError, "Host aliases must be specified as an array"

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list