hammer template dump does not request password when output redirected to a file
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):
Steps to Reproduce:
1. # hammer --username admin template dump --name epel > snippet-epel.erb
- hammer --username admin template dump --name epel > snippet-epel.erb
Invalid username or password
As per when hammer is run without redirecting to a file
- hammer --username admin template dump --name epel
[Foreman] Password for admin:
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.
#4 Updated by Oleh Fedorenko 11 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset hammer-cli-foreman|fe2efe119291489a2f59e38aec43997f3c71fdc2.