On Tue, Aug 30, 2011 at 12:17 PM, Scott Rankin <[email protected]> wrote:
> I just figured that out.  If I change it to a defined resource, it works.
>  What led me in the wrong direction, though, was this sentence in the
> function documentation:
> " This is currently tested for defined resources, classes, as well as native
> types"
>
> I guess that's not really the case?

I need to be more precise about what I write, it will work for a class:

class hello_world {
  notify { "hi": }
}

create_resource("class", {hello_world})

I should of wrote "in your case, create_resource is intended for
resources, not classes."

Thanks,

Nan

-- 
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