patroni/debian/patches/behave_failure_logging.patch

9 lines
417 B
Diff
Raw Normal View History

--- ./features/environment.py_ 2018-09-25 13:20:02.659994338 +0200
+++ ./features/environment.py 2018-09-25 13:32:35.455221988 +0200
@@ -813,3 +813,5 @@
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")