Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
perun-proxy-utils
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Perun
Perun ProxyIdP
perun-proxy-utils
Commits
e239d03d
Commit
e239d03d
authored
8 months ago
by
Rastislav Kruták
Browse files
Options
Downloads
Patches
Plain Diff
refactor: ruff formater not passing
parent
9c2c7455
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!76
refactor: ruff formater not passing
Pipeline
#557240
passed
8 months ago
Stage: .pre
Stage: test
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
perun/proxy/utils/separate_oidc_logs.py
+4
-3
4 additions, 3 deletions
perun/proxy/utils/separate_oidc_logs.py
perun/proxy/utils/separate_ssp_logs.py
+4
-3
4 additions, 3 deletions
perun/proxy/utils/separate_ssp_logs.py
with
8 additions
and
6 deletions
perun/proxy/utils/separate_oidc_logs.py
+
4
−
3
View file @
e239d03d
...
@@ -69,9 +69,10 @@ def main():
...
@@ -69,9 +69,10 @@ def main():
final_log_file
.
close
()
final_log_file
.
close
()
# Zip old log file
# Zip old log file
with
open
(
full_log_absolute_name
,
"
rb
"
)
as
f_in
,
gzip
.
open
(
with
(
full_log_absolute_name
+
"
.gz
"
,
"
wb
"
open
(
full_log_absolute_name
,
"
rb
"
)
as
f_in
,
)
as
f_out
:
gzip
.
open
(
full_log_absolute_name
+
"
.gz
"
,
"
wb
"
)
as
f_out
,
):
shutil
.
copyfileobj
(
f_in
,
f_out
)
shutil
.
copyfileobj
(
f_in
,
f_out
)
# Remove unzip file
# Remove unzip file
...
...
This diff is collapsed.
Click to expand it.
perun/proxy/utils/separate_ssp_logs.py
+
4
−
3
View file @
e239d03d
...
@@ -79,9 +79,10 @@ def main():
...
@@ -79,9 +79,10 @@ def main():
final_log_file
.
close
()
final_log_file
.
close
()
# Zip old log file
# Zip old log file
with
open
(
full_log_absolute_name
,
"
rb
"
)
as
f_in
,
gzip
.
open
(
with
(
full_log_absolute_name
+
"
.gz
"
,
"
wb
"
open
(
full_log_absolute_name
,
"
rb
"
)
as
f_in
,
)
as
f_out
:
gzip
.
open
(
full_log_absolute_name
+
"
.gz
"
,
"
wb
"
)
as
f_out
,
):
shutil
.
copyfileobj
(
f_in
,
f_out
)
shutil
.
copyfileobj
(
f_in
,
f_out
)
# Remove unzip file
# Remove unzip file
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment