From 23894db97e2e47ada48ff40b4a81f8d550cef7ab Mon Sep 17 00:00:00 2001 From: Massimo Schembri <32139342+peterparser@users.noreply.github.com> Date: Thu, 29 Feb 2024 18:23:20 +0100 Subject: [PATCH] fix(clone_with_wale): fix script to work with wal-g master --- postgres-appliance/bootstrap/clone_with_wale.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/postgres-appliance/bootstrap/clone_with_wale.py b/postgres-appliance/bootstrap/clone_with_wale.py index c575daccc..5f000dd20 100755 --- a/postgres-appliance/bootstrap/clone_with_wale.py +++ b/postgres-appliance/bootstrap/clone_with_wale.py @@ -57,9 +57,10 @@ def fix_output(output): started = None for line in output.decode('utf-8').splitlines(): if not started: - started = re.match(r'^name\s+last_modified\s+', line) or re.match(r'^name\s+modified\s+', line) + started = re.match(r'^name\s+last_modified\s+', line) or re.match(r'^name\s+modified\s+', line) or re.match(r'^backup_name\s+modified\s+', line) if started: line = line.replace(' modified ', ' last_modified ') + line = line.replace(' backup_name ', ' name ') if started: yield '\t'.join(line.split())