]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
Explicitly load functions used by ensure_resource
authorDan Bode <dan@puppetlabs.com>
Wed, 15 Aug 2012 22:57:45 +0000 (15:57 -0700)
committerJeff McCune <jeff@puppetlabs.com>
Thu, 25 Oct 2012 17:57:40 +0000 (10:57 -0700)
commit9fc3063ea954bbd49cd2b8386bc69696a4af4114
treeedb57c2cf326241c762052ab6431d96f464f6033
parent699d520e72014a3a17395c52c04f5b521d1318e6
Explicitly load functions used by ensure_resource

The ensure_resource function actually calls two
other functions, create_resources and defined_with_param.

When calling Puppet functions from Ruby, you sometimes have
to load the functions manually if they have not been called
before.

This commit explicitly loads the functions that ensure_resource
depends on from within the function.
lib/puppet/parser/functions/ensure_resource.rb