Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gpfs-policy
Manage
Activity
Members
Labels
Plan
Issues
14
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rc
gpfs-policy
Merge requests
!53
Add /data/rc as valid target for policy runs
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Add /data/rc as valid target for policy runs
mdefende/gpfs-policy:enh-add-more-devices-for-policy-run
into
main
Overview
0
Commits
1
Pipelines
0
Changes
1
Open
Matthew K Defenderfer
requested to merge
mdefende/gpfs-policy:enh-add-more-devices-for-policy-run
into
main
3 months ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Added hacky solution to allow /data/rc to be selected for policy runs through the Python wrapper
👍
0
👎
0
Merge request reports
Compare
main
main (HEAD)
and
latest version
latest version
6c5ebb09
1 commit,
3 months ago
1 file
+
4
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/run-policy/run-submit-pol-job.py
+
4
−
1
Options
@@ -58,7 +58,10 @@ def validate_device(device):
if
device
in
[
'
scratch
'
,
'
home
'
]:
return
Path
(
'
/
'
).
joinpath
(
device
).
resolve
()
if
device
in
[
'
/scratch
'
,
'
/home
'
,
'
/data/user
'
,
'
/data/project
'
]:
if
device
==
'
rc
'
:
return
Path
(
'
/data/rc
'
).
resolve
()
if
device
in
[
'
/scratch
'
,
'
/home
'
,
'
/data/user
'
,
'
/data/project
'
,
'
/data/rc
'
]:
return
Path
(
device
).
resolve
()
p
=
Path
(
device
).
resolve
()
# resolve given path into absolute path
Loading