Project

General

Profile

Bug #3854

Hammer fails with exception when it tries to load a module that is not installed

Added by Tomáš Strachota over 5 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Hammer core
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

When a module that is not installed is listed in hammer's config, hammer fails with an exception:

hammer
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- hammer_cli_foreman (LoadError)
    from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
    from /usr/bin/hammer:52
    from /usr/bin/hammer:50:in `each'
    from /usr/bin/hammer:50

It should rather print a message to stderr, log the error and continue loading other modules.

Associated revisions

Revision cb624096 (diff)
Added by Tomas Strachota over 5 years ago

Fixes #3854 - exception on loading an uninstalled module

Revision 7320c7b2
Added by Tomas Strachota over 5 years ago

Merge pull request #65 from tstrachota/3854_module_loading

Fixes #3854 - exception on loading an uninstalled module

History

#1 Updated by Dmitri Dolguikh over 5 years ago

  • Target version set to 1.9.2

#2 Updated by Tomáš Strachota over 5 years ago

  • Status changed from New to Assigned
  • Assignee set to Tomáš Strachota

#3 Updated by Tomáš Strachota over 5 years ago

  • Status changed from Assigned to Ready For Testing

#4 Updated by Anonymous over 5 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Applied in changeset foreman:hammer-cli|commit:cb6240964c0b3c106aefa27ea72280980c270d60.

Also available in: Atom PDF