diff options
| author | mike bayer <mike_mp@zzzcomputing.com> | 2022-09-24 01:02:16 +0000 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2022-09-24 01:02:16 +0000 |
| commit | beb4376c5eba11423c0be247aaa62ba18a666d54 (patch) | |
| tree | 5f3f73e115aca425e277764045098b52698785a2 /lib/sqlalchemy/testing/plugin/plugin_base.py | |
| parent | 8e59de9cc180453470f2530a459ae8c248916288 (diff) | |
| parent | 3333c6623fa45bcbc7fabd061184a79b7b7f2fa6 (diff) | |
| download | sqlalchemy-beb4376c5eba11423c0be247aaa62ba18a666d54.tar.gz | |
Merge "Tighten password security by removing `URL.__str__`" into main
Diffstat (limited to 'lib/sqlalchemy/testing/plugin/plugin_base.py')
| -rw-r--r-- | lib/sqlalchemy/testing/plugin/plugin_base.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sqlalchemy/testing/plugin/plugin_base.py b/lib/sqlalchemy/testing/plugin/plugin_base.py index 494e7d5ab..b90a2ec58 100644 --- a/lib/sqlalchemy/testing/plugin/plugin_base.py +++ b/lib/sqlalchemy/testing/plugin/plugin_base.py @@ -436,7 +436,10 @@ def _engine_uri(options, file_config): if options.write_idents and provision.FOLLOWER_IDENT: with open(options.write_idents, "a") as file_: - file_.write(provision.FOLLOWER_IDENT + " " + db_url + "\n") + file_.write( + f"{provision.FOLLOWER_IDENT} " + f"{db_url.render_as_string(hide_password=False)}\n" + ) cfg = provision.setup_config( db_url, options, file_config, provision.FOLLOWER_IDENT |
