Lines Matching full:policy
19 2) Crosschecks this generated JSON with the IBM error policy table,
133 def crosscheck(errors, policy, outfile): argument
135 policy file, and vice versa.
138 policy_errors = [x["err"] for x in policy]
142 out.write("YAML errors not in policy table:\n\n")
149 out.write("Policy errors not in YAML:\n\n")
156 for e in policy:
162 "policy table\n\n" % (len(policy_errors), num_details)
167 parser = argparse.ArgumentParser(description="Error log policy reports")
185 "--policy",
188 help="Condensed policy in JSON",
194 help="YAML vs policy table crosscheck output file",
209 policy = yaml.safe_load(pf.read()) variable
211 crosscheck(errors, policy, args.crosscheck_file)