Skip to content

Commit de253db

Browse files
author
Alex Cline
committed
Changed str-to-array conversion and removed abbreviation.
1 parent e08734a commit de253db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/puppet/parser/functions/ensure_resource.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131
raise(ArgumentError, 'Must specify a title') unless title
3232
params ||= {}
3333

34-
items = title.kind_of?(Array) ? title : [].push(title)
34+
items = title.kind_of?(Array) ? title : [title]
3535

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 b/c it already exists")
39+
Puppet.debug("Resource #{type}[#{item}] not created because it already exists")
4040
else
4141
Puppet::Parser::Functions.function(:create_resources)
4242
function_create_resources([type.capitalize, { item => params }])

0 commit comments

Comments
 (0)