Skip to content
Snippets Groups Projects

Add /data/rc as valid target for policy runs

1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
@@ -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