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.
Updated by Dominic Cleal over 8 years ago
- Blocks Feature #14453: Generate Kafo parser cache during build added
Updated by The Foreman Bot over 8 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/kafo/pull/136 added
Updated by Dominic Cleal over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset edee08deb4d02a961c65f471059eed38aec6686a.
Actions