summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/plugin/plugin_base.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2017-08-20 18:21:34 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2017-08-20 18:21:34 -0400
commitcc741e1ac7fce9ce7117b4855d56e38749c04868 (patch)
tree1e82087b420318b963c76df05077daac32c1b239 /lib/sqlalchemy/testing/plugin/plugin_base.py
parent00309662008b8c4a66f3e008d417ff836c91004b (diff)
downloadsqlalchemy-cc741e1ac7fce9ce7117b4855d56e38749c04868.tar.gz
- rework oracle de-provisioning to write URLs to the file as well,
supporting custom dburi etc. Change-Id: Ic0ab0b3b4223e40fd335ee3313fda4dfce942100
Diffstat (limited to 'lib/sqlalchemy/testing/plugin/plugin_base.py')
-rw-r--r--lib/sqlalchemy/testing/plugin/plugin_base.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/plugin/plugin_base.py b/lib/sqlalchemy/testing/plugin/plugin_base.py
index 506a1c922..cab93a0e7 100644
--- a/lib/sqlalchemy/testing/plugin/plugin_base.py
+++ b/lib/sqlalchemy/testing/plugin/plugin_base.py
@@ -277,6 +277,11 @@ def _engine_uri(options, file_config):
config._current = None
for db_url in db_urls:
+
+ if options.write_idents and provision.FOLLOWER_IDENT: # != 'master':
+ with open(options.write_idents, "a") as file_:
+ file_.write(provision.FOLLOWER_IDENT + " " + db_url + "\n")
+
cfg = provision.setup_config(
db_url, options, file_config, provision.FOLLOWER_IDENT)