Cleanup
This commit is contained in:
@@ -1,9 +1,29 @@
|
||||
import json
|
||||
import requests
|
||||
import os
|
||||
import pandas as pd
|
||||
# Copyright (C) 2025 James Brotosky, Brandon Wickline
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as published
|
||||
# by the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#Local Imports
|
||||
import utils.pretty as ct
|
||||
|
||||
#Standard Libary Imports:
|
||||
import datetime
|
||||
import json
|
||||
import os
|
||||
|
||||
#3rd Party Imports:
|
||||
import pandas as pd
|
||||
import requests
|
||||
|
||||
def findAgentID(url):
|
||||
|
||||
@@ -101,11 +121,7 @@ def getPolicyName(url, groupid):
|
||||
data = pd.DataFrame(result["response"]["groups"])
|
||||
name = data.loc[data['groupid'] == f"{groupid}", 'name'].values[0]
|
||||
return name
|
||||
import datetime
|
||||
import requests
|
||||
import json
|
||||
import os
|
||||
import utils.pretty as ct
|
||||
|
||||
|
||||
def devicehistory(url, outputjson: bool):
|
||||
endpoint = url + '/v1/getexechistory'
|
||||
|
||||
Reference in New Issue
Block a user