diff options
author | Travis Fields <cyberious@users.noreply.github.com> | 2015-01-02 12:27:33 -0800 |
---|---|---|
committer | Travis Fields <cyberious@users.noreply.github.com> | 2015-01-02 12:27:33 -0800 |
commit | 4700f16e8273b3d4a3b1e22b09c44d7ac9f74f3e (patch) | |
tree | 904a46493f2d6b076032d43d5db1e726f266af83 /lib/puppet | |
parent | 79e79e8bbad5f3226b51fae5a2a64bc9a84031ae (diff) | |
parent | 0d11bde5073d2976e9f5d9625757a7a71ddab6c4 (diff) |
Merge pull request #336 from mklette/master
ensure_resource: be more verbose in debug mode
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/parser/functions/ensure_resource.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/puppet/parser/functions/ensure_resource.rb b/lib/puppet/parser/functions/ensure_resource.rb index 05e5593..1ba6a44 100644 --- a/lib/puppet/parser/functions/ensure_resource.rb +++ b/lib/puppet/parser/functions/ensure_resource.rb @@ -36,8 +36,9 @@ ENDOFDOC items.each do |item| Puppet::Parser::Functions.function(:defined_with_params) if function_defined_with_params(["#{type}[#{item}]", params]) - Puppet.debug("Resource #{type}[#{item}] not created because it already exists") + Puppet.debug("Resource #{type}[#{item}] with params #{params} not created because it already exists") else + Puppet.debug("Create new resource #{type}[#{item}] with params #{params}") Puppet::Parser::Functions.function(:create_resources) function_create_resources([type.capitalize, { item => params }]) end |