Added Preflights
This commit is contained in:
+2
-3
@@ -212,8 +212,7 @@ def menu_prepare_to_enforce():
|
||||
|
||||
print(ct.colorText(f"4. Manually review the file 'paths_needing_review_{first_policy}_{second_policy}.csv'", "cyan"))
|
||||
print(ct.colorText(" Remove the rows containing path exclusions you do not approve of" , "cyan"))
|
||||
print(ct.colorText(" When complete, save the csv file to the directory 'manuallyapproved'", "cyan"))
|
||||
print(ct.colorText(" Preflight Lists will be generated", "cyan"))
|
||||
print(ct.colorText(" When complete, save the csv file to the directory 'manuallyapproved' and choose this option to generate the preflight lists", "cyan"))
|
||||
|
||||
if os.path.isfile(f"manuallyapproved\\df_paths_needing_review_{first_policy}_{second_policy}.csv") and os.path.isfile("dataframe_csv\\df_hashdestination_{first_policy}_{second_policy}.csv") and os.path.isfile(f"dataframe_csv\\df_addtochildpolicy_{first_policy}_{second_policy}.csv") and os.path.isfile(f"dataframe_csv\\f_addtobaseline_{first_policy}_{second_policy}.csv"):
|
||||
print(ct.colorText(" [✓] This step has been completed","green"))
|
||||
@@ -422,7 +421,7 @@ def menu_prepare_to_enforce():
|
||||
parentallowlisthashlist = allowbyhash[allowbyhash['reputation_status'] == 'KNOWN']['target_column'].tolist()
|
||||
utils.policyfunctions.addHash(parentallowlist,parentallowlisthashlist)
|
||||
|
||||
childallowlisthashlist = allowbyhash[allowbyhash['reputation_status'] == 'UNKNOWN']['target_column'].tolist()
|
||||
childallowlisthashlist = allowbyhash[allowbyshash['reputation_status'] == 'UNKNOWN']['target_column'].tolist()
|
||||
utils.policyfunctions.addHash(childallowlist,childallowlisthashlist)
|
||||
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user