diff --git a/npbackup/configuration.py b/npbackup/configuration.py index c77472c..57f241a 100644 --- a/npbackup/configuration.py +++ b/npbackup/configuration.py @@ -469,15 +469,13 @@ def inject_permissions_into_full_config(full_config: dict) -> Tuple[bool, dict]: repo_uri = full_config.g(f"repos.{repo}.repo_uri") manager_password = full_config.g(f"repos.{repo}.manager_password") permissions = full_config.g(f"repos.{repo}.permissions") - update_manager_password = full_config.g( - f"repos.{repo}.update_manager_password" - ) + update_manager_password = full_config.g(f"repos.{repo}.update_manager_password") print(update_manager_password, manager_password) if update_manager_password and manager_password: - full_config.s( - f"repos.{repo}.repo_uri", (repo_uri, permissions, manager_password) - ) - full_config.s(f"repos.{repo}.is_protected", True) + full_config.s( + f"repos.{repo}.repo_uri", (repo_uri, permissions, manager_password) + ) + full_config.s(f"repos.{repo}.is_protected", True) else: logger.debug(f"Permissions exist for repo {repo}") diff --git a/npbackup/gui/config.py b/npbackup/gui/config.py index 71e9e0c..5060070 100644 --- a/npbackup/gui/config.py +++ b/npbackup/gui/config.py @@ -1461,16 +1461,23 @@ def config_gui(full_config: dict, config_file: str): ), ], [ - sg.Text(_t("config_gui.suggested_encrypted_env_variables"), size=(40, 1)), + sg.Text( + _t("config_gui.suggested_encrypted_env_variables"), size=(40, 1) + ), ], [ - sg.Multiline("\ + sg.Multiline( + "\ AWS: AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY\n\ AZURE: AZURE_ACCOUNT_KEY AZURE_ACCOUNT_SAS AZURE_ACCOUNT_NAME\n\ B2: B2_ACCOUNT_ID B2_ACCOUNT_KEY\n\ Google Cloud storage: GOOGLE_PROJECT_ID GOOGLE_APPLICATION_CREDENTIALS\n\ -" - , size=(80, 4), disabled=True, font=("Courier", 12), no_scrollbar=True), +", + size=(80, 4), + disabled=True, + font=("Courier", 12), + no_scrollbar=True, + ), ], [ sg.Text(_t("config_gui.additional_parameters"), size=(40, 1)),