+1, good catch.
It would be nice if someone would write a unit test for this.

On Fri, Dec 25, 2009 at 10:05 AM, Peter Meier <[email protected]>wrote:

> It looks like something got lost during transition to host_aliases.
> ---
>  lib/puppet/provider/host/parsed.rb |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> 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"
> --
> 1.6.3.3
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<puppet-dev%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/puppet-dev?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.


Reply via email to