On Sun, Dec 05, 2010 at 12:47:35AM +0100, Stefan Schulte wrote:
> I traced the cause of the problem to type.rb function namevar
> 
>     def []=(name,value)
>       [...]
>       if name == :name
>         name = name_var ### <-- name is false now (see below)
>       end
>       [...]
>       property = self.newattr(name) # <-- raises exception cause "false"
>                                     # is no valid parameter
>       [...]
>     end
>     def name_var
>       key_attributes = self.class.key_attributes # [:name, :protocol]
>       # The following expression is always false cause length == 2
>       (key_attributes.length == 1) && key_attributes.first
>     end
> 
> I dont know where name_var is used so I can only guess that name_var has
> a bug, but I'm not able to decide that.

https://github.com/stschulte/puppet/commit/137bf0066d388090eb0df19219838d60b4ce6931
seems to fix the issue. I hope this has no siteeffects

Attachment: pgpfoackw1PJr.pgp
Description: PGP signature

Reply via email to