Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Warn when we're running fix_auth in dry run mode
https://bugzilla.redhat.com/show_bug.cgi?id=1577303 It's very easy to use -d incorrectly as the database name. We should remove the short option -d (for dry run) since it conflicts with pg_dump and other tooling for postgresql but regardless, we should have obvious feedback that we're in dry run mode. **Fix database.yml output with dry run** ``` $ tools/fix_auth.rb -h localhost -U root --password smartvm --hardcode bogus vmdb_development -d --verbose -y ** fix_database_yml is executing in dry-run mode, and no actual changes will be made** fixing /Users/joerafaniello/Code/manageiq/config/database.yml.yaml /Users/joerafaniello/Code/manageiq/config/database.yml: yaml: viewed 1 records ** This was executed in dry-run, and no actual changes will be made to /Users/joerafaniello/Code/manageiq/config/database.yml ** ``` **Fix database passwords with dry run** ``` $ tools/fix_auth.rb -h localhost -U root --password smartvm --hardcode bogus vmdb_development -d --verbose ** fix_database_passwords is executing in dry-run mode, and no actual changes will be made** fixing authentications.password, auth_key viewed 0 records fixing miq_databases.registration_http_proxy_server, session_secret_token, csrf_secret_token 1: session_secret_token: "v2:{...}" => v2:{...} csrf_secret_token: "v2:{...}" => v2:{...} viewed 1 records ** This was executed in dry-run, and no actual changes will be made to miq_databases ** fixing miq_ae_values.value viewed 0 records fixing miq_ae_fields.default_value viewed 0 records fixing settings_changes.value viewed 0 records fixing miq_requests.options viewed 0 records fixing miq_request_tasks.options viewed 0 records ```
- Loading branch information