Project

General

Profile

Actions

Bug #12112

closed

The hammer does not prompt for username and password when wrong credentials are provided

Added by Bryan Kearney about 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Foreman commands (obsolete)
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=1214555
Description of problem:

When executing a commands in hammer shell it prompts for username and password, if we provide wrong username or password then for any commands after that it only shows message "Invalid username or password",

[Foreman] Username: admin
[Foreman] Password for admin:
Invalid username or password
hammer> capsule list
Invalid username or password
hammer> subnet list
Invalid username or password

Version-Release number of selected component (if applicable):

6.1

How reproducible:

Everytime

Steps to Reproduce:
1. Login to hammer shell using "hammer shell".
2. Try to run any command like, when it would ask for username and password provide wrong credentials.
3. Try to execute any commands after this, it would not prompt for username and password again, instead will show message "Invalid username or password"

Actual results:

Does not ask credential if credentials provided first time are wrong.

Expected results:

Should ask for new credentials if first time provide credentials are wrong.

Additional info:

Actions

Also available in: Atom PDF