On 2015-06-03 12:18, Gavin Williams wrote:
Morning all

I'm trying to add some validation to a new type I've written[1] for my
Puppet-glassfish module[2].

As part of the validation, I need to access the current catalog to make
sure that there's no another resources defined with the same /:name/ and
/:target /values.

If name is the same as title of the resource, then by definition there will never be two resources with the same title/name in the catalog. This is enforced by the compiler.

If you need a complex key (name and target), then you could use both as title, and split it up in the type.

- 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/66050a1f-b969-4852-b271-8b7526b307cf%40googlegroups.com
<https://groups.google.com/d/msgid/puppet-users/66050a1f-b969-4852-b271-8b7526b307cf%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/mdcdbl%248p7%241%40ger.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to