Actions
Bug #20805
closedkatello-change-hostname should ask for credentials if not provided
Difficulty:
Triaged:
Bugzilla link:
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1481289
Description of problem:
Currently when changing hostname without specifying username and password:
- katello-change-hostname -y newname
/usr/sbin/katello-change-hostname:191:in `precheck': undefined local variable or method `opt_parser' for main:Object (NameError)
from /usr/sbin/katello-change-hostname:212:in `<main>'
or
- ]# katello-change-hostname newname
WARNING This script will modify your system. You will need to re-register any clients registered to this system after script completion. Foreman Proxies will have to be re-registered and reinstalled. If you are using custom certificates, you will have to run the -installer again with custom certificate options after this script completes. Have you taken the necessary precautions (backups, snapshots, etc...) and want to proceed with changing your hostname?
[y/n]:/usr/sbin/katello-change-hostname:191:in `precheck': undefined local variable or method `opt_parser' for main:Object (NameError)
from /usr/sbin/katello-change-hostname:212:in `<main>'
Expected results:
Some user-friendly message asking user to pass -u and -p options. Possibly, in the interactive mode katello-change-hostname could ask for credentials just after the [y/n] dialog
Updated by The Foreman Bot about 7 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello-packaging/pull/517 added
Updated by John Mitsch about 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello-packaging|a29de727340560128e086e57113202f21accfc2a.
Updated by John Mitsch about 7 years ago
- Subject changed from katello-change-hostname should ask for credentials if not provided to katello-change-hostname should ask for credentials if not provided
- Translation missing: en.field_release set to 295
Actions