patroni/debian/patches/behave_failure_logging.patch
Michael Banck 0a80df53c0 * debian/patches/behave_failure_logging.patch: Refreshed.
* debian/patches/consul_import.patch: Likewise.
  * debian/patches/coverage_binary.patch: Likewise.
  * debian/patches/startup_scripts.patch: Likewise.
2018-11-05 08:47:35 +01:00

11 lines
505 B
Diff

Index: patroni/features/environment.py
===================================================================
--- patroni.orig/features/environment.py
+++ patroni/features/environment.py
@@ -816,3 +816,5 @@ def after_feature(context, feature):
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")