Go figure, the very first thing I try to do in Puppet may be a bug!

Attempting to create a registry value of type array does not work properly 
when a "-" is in one of the strings being added.

registry_value { 'HKLM\Software\Microsoft\Rpc\Internet\Ports':
ensure => present,
type => array,
data => ['6500-7000']
}



Results in this:

PS C:\Users\Administrator> Get-ItemProperty 
'HKLM:\Software\microsoft\Rpc\Internet'

Ports                  : {6500-7000, ?}


Using the GUI to look at the registry, results in a bunch of random words 
and characters being appended to the end.

Simply opening the registry value in the GUi and clicking OK without 
actually changing anything resolves this.

I've tested this quite a bit trying to troubleshoot, and it seems 
specifically related to the dash / hyphen character being in the string.

-- 
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/a0c424bc-665d-49ac-bc60-8d0f7c927db7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to