Refactor: modernize codebase by replacing deprecated patterns, simplifying imports, and applying type hinting refinements.
This commit is contained in:
parent
55d0d1a105
commit
62e5c054f4
18 changed files with 75 additions and 68 deletions
12
src/main.py
12
src/main.py
|
|
@ -2,8 +2,14 @@ import os
|
|||
|
||||
from deepdiff import DeepDiff
|
||||
|
||||
from functions import Functions, DaemonizeHAProxy, Certbot, Consts, loggerInit, loggerEasyHaproxy, loggerHaproxy, \
|
||||
loggerCertbot
|
||||
from functions import (
|
||||
Certbot,
|
||||
Consts,
|
||||
DaemonizeHAProxy,
|
||||
Functions,
|
||||
loggerEasyHaproxy,
|
||||
loggerInit,
|
||||
)
|
||||
from processor import ProcessorInterface
|
||||
|
||||
|
||||
|
|
@ -69,7 +75,7 @@ def main():
|
|||
loggerInit.debug('Environment:')
|
||||
for name, value in os.environ.items():
|
||||
if "HAPROXY" in name:
|
||||
loggerInit.debug("- {0}: {1}".format(name, value))
|
||||
loggerInit.debug(f"- {name}: {value}")
|
||||
|
||||
start()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue