Project

General

Profile

Bug #14472

Updated by Dominic Cleal over 8 years ago

On Debian, the kafo-export-params script fails with: 

 <pre> <prE> 
 # /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>' 
 </pre> 

 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.

Back