]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
Changed str-to-array conversion and removed abbreviation.
authorAlex Cline <acline@us.ibm.com>
Mon, 6 May 2013 17:52:57 +0000 (13:52 -0400)
committerAlex Cline <acline@us.ibm.com>
Mon, 6 May 2013 17:52:57 +0000 (13:52 -0400)
lib/puppet/parser/functions/ensure_resource.rb

index 8ede96795322d1caa51dbd70ff3889171ac44f0a..36c423addc669806b489578e886754971e5ac786 100644 (file)
@@ -31,12 +31,12 @@ ENDOFDOC
   raise(ArgumentError, 'Must specify a title') unless title
   params ||= {}
 
-  items = title.kind_of?(Array) ? title : [].push(title)
+  items = title.kind_of?(Array) ? title : [title]
 
   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 b/c it already exists")
+      Puppet.debug("Resource #{type}[#{item}] not created because it already exists")
     else
       Puppet::Parser::Functions.function(:create_resources)
       function_create_resources([type.capitalize, { item => params }])