diff options
author | Mathias Klette <mathias.klette@magicinternet.de> | 2014-10-10 22:54:22 +0200 |
---|---|---|
committer | Mathias Klette <mathias.klette@magicinternet.de> | 2014-10-10 22:57:26 +0200 |
commit | 0d11bde5073d2976e9f5d9625757a7a71ddab6c4 (patch) | |
tree | ae6bd32428f28f5f4801eaff94fb11ce9f07fe1e /lib/puppet/parser/functions | |
parent | 0c0f7e13cdb407ca57d2808de9e6dc6ace9d856b (diff) |
ensure_resource: be more verbose in debug mode
helps discovering duplication issues, especially when figthing boolean vs. string arguments
Diffstat (limited to 'lib/puppet/parser/functions')
-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 |