you should be able to do something like:

call_function(:defined, 'Foo['bar']')

just keep in mind that the defined function (or anything for resource
detection) is parse order dependent which can lead to unexpected results.

On Wed, Jun 1, 2011 at 9:04 PM, Matt <mjbl...@gmail.com> wrote:

> I've been searching and havent found an answer yet. Is there a scope
> or variable that I can parse to find out if a resource is defined? I
> know there is the defined command in puppet manifests.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to