Feature #29818
closedsatellite-maintain upgrade check should not store incorrect password
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1830355
Description of problem:
If the customer is prompted to enter a hammer password when running this command:
- satellite-maintain upgrade check --target-version 6.7
and if the wrong password is entered, the password field in "/etc/foreman-maintain/foreman-maintain-hammer.yml" changes to the incorrect password.
Version-Release number of selected component (if applicable):
6.7
How reproducible:
Only when the upgrade check prompts for a hammer password.
Steps to Reproduce:
1. cat /etc/foreman-maintain/foreman-maintain-hammer.yml to see the current password.
2. Run "satellite-maintain upgrade check --target-version 6.7".
3. If prompted for a hammer password, enter a different, incorrect password.
4. cat /etc/foreman-maintain/foreman-maintain-hammer.yml to see the incorrect password there.
Actual results:
System configuration is permanently changed by an upgrade check.
Expected results:
The system configuration should not be changed by a check.
Additional info:
Updated by The Foreman Bot almost 4 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_maintain/pull/345 added
Updated by Anonymous over 2 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_maintain|89d0fe3e83cdede5f38be45c0289283012a21f01.