Project

General

Profile

Actions

Bug #15425

closed

hammer doesnt work with a "config" file in pwd

Added by Bryan Kearney almost 8 years ago. Updated almost 8 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

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:


Related issues 1 (0 open1 closed)

Is duplicate of Hammer CLI - Bug #11439: Hammer reads local config file named config but should skip it because it isnt a directoryClosedAdam Ruzicka08/20/2015Actions
Actions #1

Updated by Dominic Cleal almost 8 years ago

  • Is duplicate of Bug #11439: Hammer reads local config file named config but should skip it because it isnt a directory added
Actions #2

Updated by Dominic Cleal almost 8 years ago

  • Status changed from New to Duplicate

Please test on a current version.

Actions

Also available in: Atom PDF