On Thu, Sep 15, 2011 at 04:22:45PM -0400, Guy Matz wrote:
> hi!  Does anyone have any advice on debugging a new custom type?
> 
> Any thoughts would be greatly appreciated . . .
> 
> BTW, I'm getting the error:
> err: Could not retrieve catalog from remote server: Error 400 on SERVER:
> Could not render to pson: undefined method `merge' for []:Array
> 
> with some very rough code.
> 
> The Type (vncserver.rb):
> module Puppet
>   newtype(:vncserver) do
> 
>     ensurable
> 
>     newproperty(:port) do
[...]
>     newproperty(:username) do
[...]
>     newproperty(:geometry) do
[...]
> end
>
> The Provider (parsed.rb):
[...]
>   record_line :parsed, :fields => %w{vncservers}, :match =>
> /^VNCSERVERS="(.*)"/
> 
> end
> 

You have defined three properties (port, username, geometry) but your
provider is not able to retrieve or write any of these properties. So
how does a line in vncservers actually looks like? How can you get port,
username and geometry of a certain vncserver?

-Stefan

Attachment: pgpGqCrU2Avkk.pgp
Description: PGP signature

Reply via email to