fixed typos
This commit is contained in:
@@ -113,16 +113,16 @@ def sendToPolicy(url, first_policy, second_policy, destination_name, destination
|
||||
for path, ext in unique_combinations.itertuples(index=False, name=None)
|
||||
]
|
||||
|
||||
addPath(url, destination_id,processed_paths)
|
||||
addPathReal(url, destination_id,processed_paths)
|
||||
|
||||
print(ct.colorText(f"Adding hashes to {allowlist_parent_name}", "yellow"))
|
||||
|
||||
allowlist_parenthashlist = allowbyhash[allowbyhash['reputation_status'] == 'KNOWN']['sha256'].unique().tolist()
|
||||
addHash(url, allowlist_parent_id,allowlist_parenthashlist)
|
||||
addHashReal(url, allowlist_parent_id,allowlist_parenthashlist)
|
||||
|
||||
print(ct.colorText(f"Adding hashes to {allowlist_child_name}", "yellow"))
|
||||
allowlist_childhashlist = allowbyhash[allowbyhash['reputation_status'] == 'UNKNOWN']['sha256'].unique().tolist()
|
||||
addHash(url, allowlist_child_id, allowlist_childhashlist)
|
||||
addHashReal(url, allowlist_child_id, allowlist_childhashlist)
|
||||
|
||||
ct.locked()
|
||||
|
||||
@@ -136,7 +136,7 @@ def pullPolicyExechistories(url, policiesnames, days, outputjson: bool):
|
||||
if not os.path.exists(file_path):
|
||||
with open(file_path, 'w') as file:
|
||||
json.dump({'error': 'Success', 'response': {'exechistories': []}}, file)
|
||||
print(f"File '{file_path}' has been crated.")
|
||||
print(f"File '{file_path}' has been created.")
|
||||
else:
|
||||
print(f"File '{file_path}' already exists.")
|
||||
headers = {"X-APIKey": os.getenv('APIKEY')}
|
||||
|
||||
Reference in New Issue
Block a user