Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Merge requests
!510
fixing subspace file creation
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fixing subspace file creation
relocatable_workflows
into
main
Overview
0
Commits
1
Pipelines
1
Changes
2
Merged
Charlotte Hausman
requested to merge
relocatable_workflows
into
main
3 years ago
Overview
0
Commits
1
Pipelines
1
Changes
2
Expand
It helps if the path you want to write to exists
before
you try to write to it...
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
a5a1094b
1 commit,
3 years ago
2 files
+
7
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
shared/workspaces/workspaces/system/services/remote_processing_service.py
+
3
−
2
Options
@@ -33,6 +33,7 @@ class CapoInjector:
if
RemoteProcessingSites
.
NAASC
.
value
in
self
.
request
.
argument
:
system
=
current
.
split
(
"
-
"
)[
1
]
remote_profile
=
"
naasc-
"
+
system
logger
.
info
(
f
"
profile for request:
{
remote_profile
}
"
)
return
remote_profile
return
current
@@ -94,10 +95,10 @@ class CapoInjector:
path
=
self
.
dir_path
/
subspace
.
filename
path
.
write_bytes
(
subspace
.
content
)
logger
.
info
(
f
"
Writing capo subspace file to
{
self
.
dir_path
}
"
)
logger
.
info
(
f
"
Writing capo subspace file to
{
self
.
dir_path
.
__str__
()
}
"
)
def
clear_subspace
(
self
):
logger
.
info
(
f
"
Clearing capo subspace file from
{
self
.
dir_path
}
...
"
)
logger
.
info
(
f
"
Clearing capo subspace file from
{
self
.
dir_path
.
__str__
()
}
...
"
)
for
file
in
os
.
listdir
(
self
.
dir_path
):
if
file
.
endswith
(
"
.properties
"
):
Path
.
unlink
(
self
.
dir_path
/
file
)
Loading