UI Improvements, Santized Input
This commit is contained in:
@@ -11,3 +11,4 @@ securitytest.py
|
|||||||
*.toml
|
*.toml
|
||||||
system_config.json
|
system_config.json
|
||||||
Devel_unused/
|
Devel_unused/
|
||||||
|
AirlockTools_client*/
|
||||||
@@ -37,7 +37,6 @@ dotenv.load_dotenv()
|
|||||||
|
|
||||||
|
|
||||||
def getLocalApprovals(api: AirlockAPIWrapper):
|
def getLocalApprovals(api: AirlockAPIWrapper):
|
||||||
working_dir = load_env("WORKING_DIR")
|
|
||||||
base_dir = get_base_directory
|
base_dir = get_base_directory
|
||||||
result = api.otp_find_awaiting()
|
result = api.otp_find_awaiting()
|
||||||
local_approval = pd.DataFrame(result["response"]["otpusage"])
|
local_approval = pd.DataFrame(result["response"]["otpusage"])
|
||||||
|
|||||||
+1
-1
@@ -18,13 +18,13 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from services.agenthandler import selectAgents
|
from services.agenthandler import selectAgents
|
||||||
|
from services.API import AirlockAPIWrapper
|
||||||
from utils.selector import Selector
|
from utils.selector import Selector
|
||||||
from utils.utils import colorText, get_sanitized_input
|
from utils.utils import colorText, get_sanitized_input
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
from services.API import AirlockAPIWrapper
|
|
||||||
|
|
||||||
|
|
||||||
def generate(api: AirlockAPIWrapper):
|
def generate(api: AirlockAPIWrapper):
|
||||||
|
|||||||
+2
-1
@@ -16,6 +16,7 @@
|
|||||||
import datetime
|
import datetime
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
import dotenv
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
|
|
||||||
from flows.prepPolicy import selectPolicies
|
from flows.prepPolicy import selectPolicies
|
||||||
@@ -25,7 +26,7 @@ from utils.selector import Selector
|
|||||||
from utils.utils import colorText, load_env
|
from utils.utils import colorText, load_env
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
import dotenv
|
|
||||||
|
|
||||||
dotenv.load_dotenv()
|
dotenv.load_dotenv()
|
||||||
|
|
||||||
|
|||||||
+1
-6
@@ -15,18 +15,13 @@
|
|||||||
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
from typing import Any, List, Optional, Union
|
from typing import Any, Callable, List, Optional, Union
|
||||||
|
|
||||||
from utils.utils import get_sanitized_input
|
from utils.utils import get_sanitized_input
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
import logging
|
|
||||||
from typing import Callable
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
class Selector:
|
class Selector:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _display_choices(
|
def _display_choices(
|
||||||
|
|||||||
Reference in New Issue
Block a user