summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions
diff options
context:
space:
mode:
authorMorgan Haskel <morgan@puppetlabs.com>2014-11-04 15:29:25 -0800
committerMorgan Haskel <morgan@puppetlabs.com>2014-11-04 15:29:25 -0800
commit03f0ecd1286196c1d63342fe10f079e588cd2e58 (patch)
treeb5106ec0cd39922ef2ec6ba78f151a9994008315 /lib/puppet/parser/functions
parent2f3d426ba7ad2c3055e4774aa71c77c65e866c43 (diff)
parentf19aea5a75998da95617fadce7a50aee65022d3b (diff)
Merge pull request #350 from cyberious/modules1413
MODULES-1413 Add ability for member to take numeric objects
Diffstat (limited to 'lib/puppet/parser/functions')
-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)