]> 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)
committerDan Bode <dan@puppetlabs.com>
Wed, 15 Aug 2012 22:57:45 +0000 (15:57 -0700)
commit5d99cdf09c08f3161435ffdd2a2b666106386979
tree0cf6a19d74e8f2a8522052114fc7758dd049cac8
parentb42c82af19f64ed4398863092971c7ba81298a02
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