Skip to content
Snippets Groups Projects
Commit ce113376 authored by Matthew K Defenderfer's avatar Matthew K Defenderfer
Browse files

now converts the full device path to have - instead of / and prepends list-policy_

parent 4de49ccf
No related branches found
No related tags found
6 merge requests!24Release v0.2.0,!22Update main to rel_v0.1.1-1,!21Fix some merge errors,!20Refactoring run-mmpol scripts,!19BUGFIX: Change ownership to executing USER and group to atlab. Also automatically gzip the log output,!18ENH: Change log storage organization and correctly apply log prefix and metadata to file name
......@@ -106,11 +106,8 @@ def validate_output_directory(outdir):
return p
def create_default_log_prefix(device):
if device.match('/data/user'):
log_prefix = 'list-policy_data_user'
else:
log_prefix = f'list-policy_{device.stem}'
return log_prefix
mod_device = str(device).strip('/').replace('/','-')
return f"list-policy_{mod_device}"
def main():
args = parse_args()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment