Thanks for the reply, from what you said it might be better for me to go
about it in a different direction.

On Thu, Jun 2, 2011 at 1:07 AM, Dan Bode <[email protected]> wrote:

> 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 <[email protected]> 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 [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to