On 13/01/17 12:16, Tiago Delboni wrote:
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. :(


Sounds like they are in the wrong location, or that you are using a version of Puppet that does not support loading of types.

- henrik




--
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
<mailto: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
<https://groups.google.com/d/msgid/puppet-users/beb5380e-76a4-41b3-bf8b-1b3b2f825665%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.


--

Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/

--
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/fcd66f24-6719-6254-ef44-f42fde3e617b%40puppet.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to