Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0284a18

Browse files
author
vshepard
committed
Fix json parsing in show
1 parent8e06f91 commit0284a18

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
ifexpect_error:
434434
returntext_json
435+
index_of_bracket=text_json.find('[')
436+
ifindex_of_bracket!=-1:
437+
text_json=text_json[index_of_bracket:]
435438
data=json.loads(text_json)
436439
exceptValueError:
437440
assertFalse,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
fromdistutils.coreimportsetup
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)

[8]ページ先頭

©2009-2025 Movatter.jp