diff options
author | Travis Fields <travis@puppetlabs.com> | 2014-10-29 22:02:13 -0700 |
---|---|---|
committer | Travis Fields <travis@puppetlabs.com> | 2014-11-04 14:33:34 -0800 |
commit | f19aea5a75998da95617fadce7a50aee65022d3b (patch) | |
tree | 7a7b0fdf8b6829c3f84a9511c8f3564bc88e443f /lib/puppet/parser/functions | |
parent | 385f0094883bf30c5ec7460bd0b7a1c4c29765a1 (diff) |
MODULES-1413 Ability to for future parser to use member with FixNum types
Diffstat (limited to 'lib/puppet/parser/functions')
-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) |