On Friday, April 24, 2015 at 1:52:17 PM UTC-5, Mark Wolek wrote:
>
> We believe this has something to do with puppet inserting strings that are 
> not null terminated, but I've had no luck at all adding termination to the 
> string...  have tried single and double quoting it.  \x0 \00 \000 so many 
> types of termination tried but nothing seems to do the trick...
>
>

Having examined the source of the latest version of this module, I can tell 
you that Puppet relies on registry support from the Ruby standard library 
to handle the low-level details of registry manipulation.  As far as I can 
tell, Puppet's own code does not do any parsing or processing of registry 
values that would be sensitive to a hyphen character in the string.  Were 
you speculating about that being related to the problem, or do you in fact 
see different results when the array elements do not contain hyphens?

I am anyway inclined to think that the problem is NOT wrong string 
termination, at least of the values you specify in your manifest, because 
Get-ItemProperty is giving you an array value in which the first element 
appears completely correct.  The problem could, however, be related to 
incorrectly specifying the size of the *array* to Windows, or failing to 
provide an array terminator (I'm not much of a registry tinkerer, so I'm 
not sure which would actually be applicable).

I encourage you to file a ticket against the module.  I am uncertain 
whether the issue is there or in the Ruby standard library because the docs 
of the relevant library class suffer from the vagueness typical of Ruby 
docs, but the module maintainers are best positioned to evaluate that.  
Even if the problem turns out to be in the underlying Ruby library, it does 
not appear that the module's tests include any that exercise setting or 
retrieving values of type "array", and a ticket against the module *should* 
result at least in addition of such tests.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/1de70d44-9c68-4970-9bc7-0a69f9d547a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to