DailyBuild
This commit is contained in:
@@ -90,8 +90,6 @@ def getPolicyFromClientID(url, clientid):
|
||||
policy_id = data.loc[0, "groupid"]
|
||||
return policy_name, policy_id
|
||||
|
||||
|
||||
|
||||
def getPolicyName(url, groupid):
|
||||
endpoint = url + '/v1/group/'
|
||||
payload = {}
|
||||
@@ -113,7 +111,6 @@ def getPolicyName(url, groupid):
|
||||
|
||||
return name
|
||||
|
||||
|
||||
def devicehistory(url, outputjson: bool):
|
||||
endpoint = url + '/v1/getexechistory'
|
||||
print("\n")
|
||||
|
||||
@@ -19,15 +19,13 @@ import utils.pathfunctions as pathf
|
||||
import utils.utils as ct
|
||||
|
||||
#Standard Libary Imports:
|
||||
import ast
|
||||
import gc
|
||||
import json
|
||||
|
||||
import os
|
||||
import re
|
||||
|
||||
#3rd Party Imports:
|
||||
import pandas as pd
|
||||
import requests
|
||||
|
||||
|
||||
def split_filepaths_grouped(df, col="filename", group_parts=4, min_parts=4):
|
||||
def clean_split(path):
|
||||
|
||||
@@ -174,6 +174,7 @@ def pullPolicyExechistories(url, policiesnames, type, days, outputjson: bool):
|
||||
with tqdm.tqdm(file=sys.stdout, leave=True, total=10000, desc=f"Checkpoint Progess: {checkpoint}", colour="blue", initial=1) as filebar:
|
||||
with tqdm.tqdm(file=sys.stdout, leave=True, total=100, desc=f"Total of {policiesnames} Complete: ") as pbar:
|
||||
while True:
|
||||
item = {}
|
||||
json_response_data = checkpoint_stomper(checkpoint, url, type, policiesnames, headers)
|
||||
histories = json_response_data['response']['exechistories']
|
||||
filebar.total=len(histories)
|
||||
@@ -631,7 +632,7 @@ def getDestAllowlist(url, groupid):
|
||||
|
||||
allowlists = getPolicyAllowlists(url, groupid)
|
||||
|
||||
matches = allowlists.loc[
|
||||
matches = allowlists[
|
||||
allowlists['name'].str.contains('local', case=False, na=False) &
|
||||
allowlists['name'].str.contains('approval', case=False, na=False),
|
||||
'applicationid'
|
||||
|
||||
Reference in New Issue
Block a user