Actions
Bug #14472
closedkafo-export-params fails on Debian: cannot load such file -- configuration (LoadError)
Description
On Debian, the kafo-export-params script fails with:
# /usr/bin/kafo-export-params -c /etc/foreman-installer/scenarios.d/foreman.yaml /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- configuration (LoadError) from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /usr/bin/kafo-export-params:12:in `<main>'
The script tries to prepend /usr/lib/kafo to the LOAD_PATH, which is incorrect as the Ruby files are actually in /usr/lib/ruby/vendor_ruby/kafo.
The script should simply load kafo/configuration as the load path should be correctly configured already. There's already a require on kafo/exceptions which is working correctly.
Actions