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

Commit8e06f91

Browse files
authored
Merge pull request#119 from postgrespro/Add_major_version_value_into_init_helper
Value pg_probackup major_version added to the class Init
2 parents4766f93 +5b8a836 commit8e06f91

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎testgres/plugins/pg_probackup2/pg_probackup2/init_helpers.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,12 @@ def __init__(self):
204204
os.environ["PGAPPNAME"]="pg_probackup"
205205
self.delete_logs=delete_logs
206206

207+
ifself.probackup_version.split('.')[0].isdigit():
208+
self.major_version=int(self.probackup_version.split('.')[0])
209+
else:
210+
print('Can\'t process pg_probackup version\"{}\": the major version is expected to be a number'.format(self.probackup_version))
211+
sys.exit(1)
212+
207213
deftest_env(self):
208214
returnself._test_env.copy()
209215

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp