From 8239bd2f8fc06fb0a292ebbb3eb5d6a39c96e9f2 Mon Sep 17 00:00:00 2001 From: Matthew K Defenderfer <mdefende@uab.edu> Date: Wed, 11 Sep 2024 16:29:56 -0500 Subject: [PATCH] add comment to not change policy definition paths --- src/run-policy/run-submit-pol-job.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/run-policy/run-submit-pol-job.py b/src/run-policy/run-submit-pol-job.py index 716784c..c69cd95 100755 --- a/src/run-policy/run-submit-pol-job.py +++ b/src/run-policy/run-submit-pol-job.py @@ -21,7 +21,7 @@ def parse_args(): help="Directory to store the policy output in", default='/data/rc/gpfs-policy/data') parser.add_argument('-f','--log-prefix', type=str, - help="Prefix for the policy output file. Defaults to 'list-policy_[device-id]' where 'device-id' is the device stem when device is a path or just device when it is a fileset. The final file name will have the policy type, the job ID, and the run date tagged on the end") + help="Prefix for the policy output file. Defaults to 'list-policy_[device-id]' where 'device-id' is the device stem. The final file name will have the policy type, the job ID, and the run date tagged on the end") parser.add_argument('--with-dirs', action='store_true', help="Include directories as entries in the policy output (Default: false)") @@ -127,6 +127,9 @@ def main(): if args['log_prefix'] is None: args['log_prefix'] = create_default_log_prefix(args['device']) + # Paths to policy definitions are hard-coded here and should not be altered in any way. This script gives elevated + # permissions to run the GPFS policy engine to non-admins. These are the only two policy files non-admins should + # use. Any other policy needs should go through an admin. if args['with_dirs']: args['policy'] = './policy-def/list-path-dirplus' else: -- GitLab