Em quarta-feira, 11 de janeiro de 2017 15:38:28 UTC-2, Henrik Lindberg escreveu: > > > Maybe there is something wrong with that type. > What does this give you: > > notice('C:\a\valid\path' =~ Stdlib::Windowspath) > > If that fails, please report the issue against stdlib. > (Or I am blind and there is something not right about the path). > > Hi Henrik
The first notice bellow returns FALSE and the second, that uses Stdlib::Windowspath definition from "puppetlabs-stdlib\types\windowspath.pp" returns TRUE. notice('C:\temp' =~ Stdlib::Windowspath) notice('C:\temp' =~ Pattern[/^(([a-zA-Z]:[\\\/])|([\\\/][\\\/][^\\\/]+[\\\/][^\\\/]+)|([\\\/][\\\/]\?[\\\/][^\\\/]+))/]) I also defined my own Windowspath type in "mymodule\types\windowspath.pp" and the following test returns FALSE: notice('C:\temp' =~ Mymodule::Windowspath) I guess it all points to a "type loading" issue - I can't use types, even those defined inside my own module. :( > -- 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/beb5380e-76a4-41b3-bf8b-1b3b2f825665%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.