- Notifications
You must be signed in to change notification settings - Fork36
Value pg_probackup major_version added to the class Init#119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
3dc640f2a0c37b5db4ae33a90ecdea05a4a5b8a836File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -204,6 +204,12 @@ def __init__(self): | ||
| os.environ["PGAPPNAME"] = "pg_probackup" | ||
| self.delete_logs = delete_logs | ||
| if self.probackup_version.split('.')[0].isdigit(): | ||
| self.major_version = int(self.probackup_version.split('.')[0]) | ||
| else: | ||
| print('Can\'t process pg_probackup version \"{}\": the major version is expected to be a number'.format(self.probackup_version)) | ||
| sys.exit(1) | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Можно более безопасные преобразования сделат, на случай если в версии что-то не то будет.Либо не скастится в int либо не будет первого элемента | ||
| def test_env(self): | ||
| return self._test_env.copy() | ||