On 05/01/17 18:27, Matthew Ceroni wrote: > However I want to validate that the code still works. Really all that > was needed was to drop in the provider code in > > | > foreman/app/models/compute_resources/foreman/model/openstackv3.rb > > module Foreman::Model > class OpenstackV3 < ComputeResource
This filename doesn't look right for the class name - it may need to be openstack_v3.rb (because "Foreman::Model::OpenstackV3".underscore returns "foreman/model/openstack_v3"). [..] > > However, when I do that on Foreman 1.13 I get > > uninitialized constant Foreman::Model::OpenstackV3 (NameError) > > /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_hooks-0.3.12/lib/foreman_hooks.rb:90:in > `load_missing_constant_with_hooks' > /usr/share/foreman/app/models/concerns/fog_extensions.rb:54:in `<top > (required)>' > > /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in > `require' > > /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in > `require' > > /opt/rh/sclo-ror42/root/usr/share/gems/gems/polyglot-0.3.4/lib/polyglot.rb:65:in > `require' > /usr/share/foreman/config/initializers/foreman.rb:12:in `<top (required)> > > > Which if I am understanding the error correctly means it can't find the > OpenstackV3 class. Yes, the Rails autoloader probably can't find it at the current location. -- Dominic Cleal domi...@cleal.org -- You received this message because you are subscribed to the Google Groups "foreman-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to foreman-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.