-
-
Notifications
You must be signed in to change notification settings - Fork 756
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
backport from PR 8522 #8675
base: 1.4-maint
Are you sure you want to change the base?
backport from PR 8522 #8675
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 1.4-maint #8675 +/- ##
=============================================
- Coverage 82.70% 82.55% -0.15%
=============================================
Files 38 38
Lines 11117 11117
Branches 1725 1725
=============================================
- Hits 9194 9178 -16
- Misses 1366 1380 +14
- Partials 557 559 +2 ☔ View full report in Codecov by Sentry. |
src/borg/helpers/parseformat.py
Outdated
"pid": os.getpid(), | ||
"fqdn": fqdn, | ||
"reverse-fqdn": ".".join(reversed(fqdn.split("."))), | ||
"hostname": hostname, | ||
"now": DatetimeWrapper(current_time.astimezone()), | ||
"utcnow": DatetimeWrapper(current_time), | ||
"unixtime": int(current_time.timestamp()), | ||
"user": getosusername(), | ||
"uuid4": str(uuid.uuid4()), | ||
"borgversion": borg_version, | ||
"borgmajor": "%d" % borg_version_tuple[:1], | ||
"borgminor": "%d.%d" % borg_version_tuple[:2], | ||
"borgpatch": "%d.%d.%d" % borg_version_tuple[:3], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
borg master branch uses black for code style, but 1.4 branch does not.
can you please only do the minimal change necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got rid of the code styles. Should now only be a single line change.
No description provided.