Merge pull request #336 from mklette/master
ensure_resource: be more verbose in debug mode
This commit is contained in:
commit
4700f16e82
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue