2018-11-05 08:47:35 +01:00
|
|
|
Index: patroni/features/environment.py
|
|
|
|
===================================================================
|
|
|
|
--- patroni.orig/features/environment.py
|
|
|
|
+++ patroni/features/environment.py
|
2019-01-15 19:12:12 +01:00
|
|
|
@@ -823,3 +823,5 @@ def after_feature(context, feature):
|
2018-09-25 15:44:49 +02:00
|
|
|
context.pctl.stop_all()
|
|
|
|
shutil.rmtree(os.path.join(context.pctl.patroni_path, 'data'))
|
|
|
|
context.dcs_ctl.cleanup_service_tree()
|
|
|
|
+ if feature.status == 'failed':
|
|
|
|
+ shutil.copytree(context.pctl.output_dir, context.pctl.output_dir + "_failed")
|