We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e08734a commit de253dbCopy full SHA for de253db
lib/puppet/parser/functions/ensure_resource.rb
@@ -31,12 +31,12 @@
31
raise(ArgumentError, 'Must specify a title') unless title
32
params ||= {}
33
34
- items = title.kind_of?(Array) ? title : [].push(title)
+ items = title.kind_of?(Array) ? title : [title]
35
36
items.each do |item|
37
Puppet::Parser::Functions.function(:defined_with_params)
38
if function_defined_with_params(["#{type}[#{item}]", params])
39
- Puppet.debug("Resource #{type}[#{item}] not created b/c it already exists")
+ Puppet.debug("Resource #{type}[#{item}] not created because it already exists")
40
else
41
Puppet::Parser::Functions.function(:create_resources)
42
function_create_resources([type.capitalize, { item => params }])
0 commit comments