Description of problem:
Adding new ssh credentials via Automation -> Ansible -> Credentials , add new credentials does not actually create new credentials with ssh keys; they are reported as "Add of Credential .... has been successfully queued.", but never appear.
Version-Release number of selected component (if applicable):
How reproducible:
Try to add new credentials with SSH keys.
Steps to Reproduce:
1. Automation -> Ansible -> Credentials, klick Configuration, Add New Credential
2. Credential Type: Machine
3. Enter a username and a SSH key in field "Private key"
4. Click add
Actual results:
"Add of Credential "mySSH" has been successfully queued." is shown - but the credential is not actually added.
Expected results:
The credential should be added.
Hapreet/Zita,
The ssh_key_data has the newline characters being changed and Tower will fail it.
Also, when user is adding ssh_key_data, they need to also provide ssh_key_unlock. Or else Tower will fail it too.
This is the same for create and update.