redhataccess / foreman-plugin

Container for Foreman Plugin
13 stars 20 forks source link

Add /lib folder to load paths in engine.rb #53

Closed stejskalleos closed 3 years ago

stejskalleos commented 3 years ago

Missing config.eager_load_paths += Dir["#{config.root}/lib"] in engine.rb can cause NameError (uninitialized constant RedhatAccess::VERSION)

How to reproduce:

It will fail, because of: NameError (uninitialized constant RedhatAccess::VERSION)

cc: @ShimShtein

ShimShtein commented 3 years ago

Indeed in latest foreman the loading mechanism became more strict, so lib folder no longer loads unless added to eager_load_paths