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

add comment to not change policy definition paths

parent 83db2bb7
No related branches found
No related tags found
1 merge request!12Run policy minor edits
......@@ -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:
......
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