Skip to content

Commit 4700f16

Browse files
committed
Merge pull request #336 from mklette/master
ensure_resource: be more verbose in debug mode
2 parents 79e79e8 + 0d11bde commit 4700f16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/puppet/parser/functions/ensure_resource.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@
3636
items.each do |item|
3737
Puppet::Parser::Functions.function(:defined_with_params)
3838
if function_defined_with_params(["#{type}[#{item}]", params])
39-
Puppet.debug("Resource #{type}[#{item}] not created because it already exists")
39+
Puppet.debug("Resource #{type}[#{item}] with params #{params} not created because it already exists")
4040
else
41+
Puppet.debug("Create new resource #{type}[#{item}] with params #{params}")
4142
Puppet::Parser::Functions.function(:create_resources)
4243
function_create_resources([type.capitalize, { item => params }])
4344
end

0 commit comments

Comments
 (0)