Project

General

Profile

Actions

Bug #3990

closed

Errors running stdlib validate_* function when it calls another function

Added by Dominic Cleal about 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

The stdlib validate_bool function now calls is_bool (somewhere between 224b8f9a and 01c9c3c97), which is expected to be available via the Puppet scope. Since kafo calls these directly and individually, it's not.

# [ INFO 2014-01-10 12:30:30 verbose] Running validation checks
# /vagrant/foreman-installer/modules/stdlib/lib/puppet/parser/functions/validate_bool.rb:27:in `function_validate_bool': undefined method `function_is_bool' for #<#<Class:0x7f4403aa0b38>:0x7f4403aa04a8> (NoMethodError)
#     from /vagrant/foreman-installer/modules/stdlib/lib/puppet/parser/functions/validate_bool.rb:26:in `each'
#     from /vagrant/foreman-installer/modules/stdlib/lib/puppet/parser/functions/validate_bool.rb:26:in `function_validate_bool'
#     from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.4/lib/kafo/validator.rb:43:in `send'
#     from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.4/lib/kafo/validator.rb:43:in `method_missing'
#     from /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/function.rb:33:in `send'
#     from /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/function.rb:33:in `evaluate'
#     from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.4/lib/kafo/param.rb:68:in `valid?'
#     from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.4/lib/kafo/param.rb:67:in `map!'
#     from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.4/lib/kafo/param.rb:67:in `valid?'
#     from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.4/lib/kafo/kafo_configure.rb:281:in `validate_all'
#     from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.4/lib/kafo/kafo_configure.rb:280:in `map'
#     from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.4/lib/kafo/kafo_configure.rb:280:in `validate_all'
#     from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.4/lib/kafo/kafo_configure.rb:79:in `execute'
#     from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.4/lib/kafo/kafo_configure.rb:61:in `catch'
#     from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.4/lib/kafo/kafo_configure.rb:61:in `execute'
#     from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
#     from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `run'
#     from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.4/lib/kafo/kafo_configure.rb:98:in `run'
#     from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.4/lib/kafo/kafo_configure.rb:97:in `catch'
#     from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.4/lib/kafo/kafo_configure.rb:97:in `run'
#     from /usr/sbin/foreman-installer:45

We're unable to update stdlib in the installer because of this bug.

Actions #1

Updated by Marek Hulán about 10 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Marek Hulán
Actions #2

Updated by Dominic Cleal about 10 years ago

  • Target version set to 1.9.2
  • translation missing: en.field_release set to 4
Actions #3

Updated by Marek Hulán about 10 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF