From 61428cf80ac7f29a99900a0f727f2c3e19c38baf Mon Sep 17 00:00:00 2001 From: strNophix Date: Fri, 8 Apr 2022 21:22:16 +0200 Subject: [PATCH] Formatted files using yapf --- cli.py | 1 + service.py | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cli.py b/cli.py index 68591fc..46e8a8e 100755 --- a/cli.py +++ b/cli.py @@ -140,6 +140,7 @@ class InventoryWriter: """ Helper class for generating Ansible inventory files. """ + def __init__(self, location: str) -> None: self._file_handle = Path(location) self._groups: dict[str, set[str]] = DefaultDict(set) diff --git a/service.py b/service.py index bbd141b..acc86de 100644 --- a/service.py +++ b/service.py @@ -78,14 +78,12 @@ def main() -> int: print(P_BANNER) customer_name = Prompter.input("Wat is uw naam: ", lambda x: bool(RE_TEXT.match(x))) - """ Ensures the necessary customer setup. """ envs_dir = path.join("customers", customer_name, "envs") Path(envs_dir).mkdir(parents=True, exist_ok=True) - p = Prompter(ps1=f"{customer_name} > ") while True: print(P_OPTIONS) @@ -103,7 +101,9 @@ def main() -> int: Used to either update or create an environment. """ envs = get_env_list(customer_name) - print(f"NOTE: Kies een albestaande omgevingen {envs} of iets nieuws...") + print( + f"NOTE: Kies een albestaande omgevingen {envs} of iets nieuws..." + ) fmt = "Omgevingsnaam:" env_name = p.take_input(fmt, RE_TEXT) @@ -136,7 +136,6 @@ def main() -> int: amnt_nginx_web = "1" amnt_nginx_lb = "0" amnt_psql = "0" - """ Define the format for templating ip-addresses.`{}` is required and will be subbed at runtime with the correct octet.