Skip to content

Commit 0284a18

Browse files
author
vshepard
committed
Fix json parsing in show
1 parent 8e06f91 commit 0284a18

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

testgres/plugins/pg_probackup2/pg_probackup2/app.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,9 @@ def show(
432432
try:
433433
if expect_error:
434434
return text_json
435+
index_of_bracket = text_json.find('[')
436+
if index_of_bracket != -1:
437+
text_json = text_json[index_of_bracket:]
435438
data = json.loads(text_json)
436439
except ValueError:
437440
assert False, f"Couldn't parse {text_json} as json. " \

testgres/plugins/pg_probackup2/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from distutils.core import setup
55

66
setup(
7-
version='0.0.2',
7+
version='0.0.3',
88
name='testgres_pg_probackup2',
99
packages=['pg_probackup2', 'pg_probackup2.storage'],
1010
description='Plugin for testgres that manages pg_probackup2',

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy