diff options
author | Morgan Haskel <morgan@puppetlabs.com> | 2014-11-10 11:10:41 -0800 |
---|---|---|
committer | Morgan Haskel <morgan@puppetlabs.com> | 2014-11-10 11:10:41 -0800 |
commit | 850297b560738ff385959a97a96c916105be5631 (patch) | |
tree | 5ff121d13c8078d6e113a2968157622f83ee798e /lib/puppet | |
parent | 406e9dbda2fe3378ba624b8297e3209c3298e515 (diff) | |
parent | 03f0ecd1286196c1d63342fe10f079e588cd2e58 (diff) |
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.rb | 3 |
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) |