NoMethodError: undefined method `_' for #<Puppet::Resource::Catalog::Compiler:0x000000044285e8>

asked 2018-01-18 13:02:07 -0600

Getting this error when running rspec tests. I can't find much information on it. Here is the stack trace.

1) ssm should contain Class[ssm] Failure/Error: it { should create_class('ssm')}

 NoMethodError:
   undefined method `_' for #<Puppet::Resource::Catalog::Compiler:0x000000044285e8>
 # /home/vagrant/.gem/ruby/gems/puppet-5.3.3/lib/puppet/indirector/catalog/compiler.rb:68:in `initialize'
 # /usr/share/ruby/vendor_ruby/puppet/indirector/indirection.rb:334:in `new'
 # /usr/share/ruby/vendor_ruby/puppet/indirector/indirection.rb:334:in `make_terminus'
 # /usr/share/ruby/vendor_ruby/puppet/indirector/indirection.rb:129:in `terminus'
 # /usr/share/ruby/vendor_ruby/puppet/indirector/indirection.rb:321:in `prepare'
 # /usr/share/ruby/vendor_ruby/puppet/indirector/indirection.rb:191:in `find'
 # /home/vagrant/.gem/ruby/gems/rspec-puppet-2.6.9/lib/rspec-puppet/adapters.rb:83:in `catalog'
 # /home/vagrant/.gem/ruby/gems/rspec-puppet-2.6.9/lib/rspec-puppet/support.rb:354:in `build_catalog_without_cache'
 # /home/vagrant/.gem/ruby/gems/rspec-puppet-2.6.9/lib/rspec-puppet/support.rb:375:in `block in build_catalog'
 # /home/vagrant/.gem/ruby/gems/rspec-puppet-2.6.9/lib/rspec-puppet/cache.rb:17:in `call'
 # /home/vagrant/.gem/ruby/gems/rspec-puppet-2.6.9/lib/rspec-puppet/cache.rb:17:in `get'
 # /home/vagrant/.gem/ruby/gems/rspec-puppet-2.6.9/lib/rspec-puppet/support.rb:374:in `build_catalog'
 # /home/vagrant/.gem/ruby/gems/rspec-puppet-2.6.9/lib/rspec-puppet/support.rb:75:in `block in load_catalogue'
 # /home/vagrant/.gem/ruby/gems/rspec-puppet-2.6.9/lib/rspec-puppet/support.rb:319:in `with_vardir'
 # /home/vagrant/.gem/ruby/gems/rspec-puppet-2.6.9/lib/rspec-puppet/support.rb:69:in `load_catalogue'
 # /home/vagrant/.gem/ruby/gems/rspec-puppet-2.6.9/lib/rspec-puppet/example/class_example_group.rb:7:in `catalogue'
 # /home/vagrant/.gem/ruby/gems/rspec-puppet-2.6.9/lib/rspec-puppet/support.rb:10:in `block in subject'
 # /home/vagrant/.gem/ruby/gems/rspec-puppet-2.6.9/lib/rspec-puppet/matchers/create_generic.rb:84:in `call'
 # /home/vagrant/.gem/ruby/gems/rspec-puppet-2.6.9/lib/rspec-puppet/matchers/create_generic.rb:84:in `matches?'
 # ./spec/classes/init_spec.rb:4:in `block (2 levels) in <top (required)>'

Thank you very much for your help

edit retag flag offensive close merge delete