Bug #14832
closedhammer template dump does not request password when output redirected to a file
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1315255
Description of problem:
Using hammer to dump templates out, it will not prompt
for the password when redirecting the output to a file,
resulting in an error.
Passing the --password option to hammer does work but
is not acceptable as this leaves the password in clear
text in the users history.
Version-Release number of selected component (if applicable):
6.1.7
How reproducible:
100%
Steps to Reproduce:
1. # hammer --username admin template dump --name epel > snippet-epel.erb
2.
3.
Actual results:
- hammer --username admin template dump --name epel > snippet-epel.erb
Invalid username or password
Expected results:
As per when hammer is run without redirecting to a file
- hammer --username admin template dump --name epel
[Foreman] Password for admin:
Additional info:
Customer has suggested that dump should have a switch to send
the output to a file, in the same way as the create has a switch
to import from a file.
Updated by Tomáš Strachota about 7 years ago
- Related to Bug #6935: hammer should use the tty for the interactive output to allow output redirection added
Updated by Oleh Fedorenko about 6 years ago
- Status changed from New to Assigned
- Assignee set to Oleh Fedorenko
Updated by The Foreman Bot about 6 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/hammer-cli-foreman/pull/391 added
Updated by Oleh Fedorenko about 6 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset hammer-cli-foreman|fe2efe119291489a2f59e38aec43997f3c71fdc2.
Updated by Martin Bacovsky about 6 years ago
- Fixed in Releases hammer-cli-0.15.1, hammer-cli-0.16.0 added