From 2369c4de2d7049b5bf797c54c3bc7505581e2f9a Mon Sep 17 00:00:00 2001 From: Jaka Pust Date: Tue, 13 Feb 2024 14:51:03 +0100 Subject: [PATCH] Fix black issues --- start_aks_bsv.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/start_aks_bsv.py b/start_aks_bsv.py index 4a159c5..9ba7012 100755 --- a/start_aks_bsv.py +++ b/start_aks_bsv.py @@ -369,15 +369,15 @@ def parse_arguments(*args): bsv_args = {"ssh": {}, "options": []} show_help = False # Argument can be either a -key or -key=value - arg_pattern = re.compile(r'^-([a-z]+[a-z0-9_]*|[a-z]+[a-z0-9_]*=.+)$') + arg_pattern = re.compile(r"^-([a-z]+[a-z0-9_]*|[a-z]+[a-z0-9_]*=.+)$") for arg in args: - if not bool(arg_pattern.match(arg)) : + if not bool(arg_pattern.match(arg)): help(error=f"Error: Wrong argument {arg}") sys.exit(1) key = arg[1:] value = None if "=" in key: - key, value = key.split('=', 1) + key, value = key.split("=", 1) # -v[erbose] if key == "v" or key == "verbose": verbose = True @@ -411,7 +411,9 @@ def parse_arguments(*args): sys.exit(0) # With SSH, all options must be provided if len(asm_args.get("ssh")) > 0 and len(asm_args.get("ssh")) != 3: - help(error="Error: Not all Alert System Microservice SSH parameters were provided.") + help( + error="Error: Not all Alert System Microservice SSH parameters were provided." + ) sys.exit(1) if len(bsv_args.get("ssh")) > 0 and len(bsv_args.get("ssh")) != 3: help(error="Error: Not all BSV SSH parameters were provided.")