summaryrefslogtreecommitdiff
path: root/lib/puppet
diff options
context:
space:
mode:
authorMorgan Haskel <morgan@puppetlabs.com>2014-11-10 11:10:41 -0800
committerMorgan Haskel <morgan@puppetlabs.com>2014-11-10 11:10:41 -0800
commit850297b560738ff385959a97a96c916105be5631 (patch)
tree5ff121d13c8078d6e113a2968157622f83ee798e /lib/puppet
parent406e9dbda2fe3378ba624b8297e3209c3298e515 (diff)
parent03f0ecd1286196c1d63342fe10f079e588cd2e58 (diff)
downloadpuppet-stdlib-850297b560738ff385959a97a96c916105be5631.tar.gz
puppet-stdlib-850297b560738ff385959a97a96c916105be5631.tar.bz2
Merge pull request #354 from puppetlabs/4.3.x
4.3.x
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/parser/functions/member.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/puppet/parser/functions/member.rb b/lib/puppet/parser/functions/member.rb
index 43d76af..11a1d24 100644
--- a/lib/puppet/parser/functions/member.rb
+++ b/lib/puppet/parser/functions/member.rb
@@ -32,8 +32,9 @@ Would return: false
item = arguments[1]
+
raise(Puppet::ParseError, 'member(): You must provide item ' +
- 'to search for within array given') if item.empty?
+ 'to search for within array given') if item.respond_to?('empty?') && item.empty?
result = array.include?(item)