Actions
Feature #11158
closedHammer does not report error if configuration file is not found
Difficulty:
easy
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1244821
Description of problem:
Hammer does not abort or warn the user if the configuration file does not exists. Instead it silently ignores it and switches to interactive mode and asks for the Username and password.
# hammer -c /notexistingfile.conf user list [Foreman] Username: admin [Foreman] Password for admin: ---|--------|------------|-------------------------------- ID | LOGIN | NAME | EMAIL ---|--------|------------|-------------------------------- 3 | admin | Admin User | root@hag.hilti.com 4 | hoici | hoici | root@localhost 5 | viewer | viewer | viewer@li-lc-1578.hag.hilti.com ---|--------|------------|--------------------------------
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1. See command above
2.
3.
Actual results:
Interactive input is asked
Expected results:
Abort with an error that the file cannot be found. Alternative is to report a warning and switch to interactive mode
Additional info:
Updated by Dominic Cleal over 9 years ago
- Description updated (diff)
- Category set to Hammer core
Updated by Tomáš Strachota over 9 years ago
- Status changed from New to Assigned
- Assignee set to Tomáš Strachota
- Difficulty set to trivial
Updated by Tomáš Strachota over 9 years ago
- Difficulty changed from trivial to easy
Updated by The Foreman Bot over 9 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/hammer-cli/pull/177 added
- Pull request deleted (
)
Updated by Anonymous over 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 169bffe4b7098027279385dafd98e75110c4dfe9.
Actions