Bug #15425
closedhammer doesnt work with a "config" file in pwd
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1346363
Description of problem:
Running hammer with a file called "config" and uncommented lines in cause hammer to fail.
Version-Release number of selected component (if applicable):
rubygem-hammer_cli-0.1.4.13-1.el7sat.noarch
How reproducible:
100%
Steps to Reproduce:
1. hammer --help (confirm it works fine)
2.cat /etc/sysconfig/selinux > config (this can be any file with uncommented text in)
3.hammer --help
Actual results:
[root@sat6 ~]# hammer --help
/usr/share/gems/gems/hammer_cli-0.1.4.13/lib/hammer_cli/settings.rb:83:in `symbolize_hash': undefined method `inject' for "SELINUX=enforcing":String (NoMethodError)
from /usr/share/gems/gems/hammer_cli-0.1.4.13/lib/hammer_cli/settings.rb:71:in `deep_merge!'
from /usr/share/gems/gems/hammer_cli-0.1.4.13/lib/hammer_cli/settings.rb:47:in `load'
from /usr/share/gems/gems/hammer_cli-0.1.4.13/lib/hammer_cli/settings.rb:40:in `load_from_file'
from /usr/share/gems/gems/hammer_cli-0.1.4.13/lib/hammer_cli/settings.rb:19:in `block in load_from_paths'
from /usr/share/gems/gems/hammer_cli-0.1.4.13/lib/hammer_cli/settings.rb:16:in `each'
from /usr/share/gems/gems/hammer_cli-0.1.4.13/lib/hammer_cli/settings.rb:16:in `load_from_paths'
from /usr/share/gems/gems/hammer_cli-0.1.4.13/bin/hammer:52:in `<top (required)>'
from /usr/bin/hammer:23:in `load'
from /usr/bin/hammer:23:in `<main>'
Expected results:
hammer --help to display help message
Additional info: