From 652a49eeead71ddaf043582dcbae4dd23698d6e4 Mon Sep 17 00:00:00 2001 From: Doggie B <3859395+fubuloubu@users.noreply.github.com> Date: Thu, 10 Oct 2024 12:33:26 -0400 Subject: [PATCH] fix(client): dump default profile.toml by alias (so it works) --- silverback/cluster/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/silverback/cluster/settings.py b/silverback/cluster/settings.py index f1b202aa..460c7899 100644 --- a/silverback/cluster/settings.py +++ b/silverback/cluster/settings.py @@ -61,13 +61,13 @@ def from_config_file(cls) -> Self: else: # Write the defaults to disk for next time settings_dict = dict( auth={ - DEFAULT_PROFILE: AuthenticationConfig().model_dump(), + DEFAULT_PROFILE: AuthenticationConfig().model_dump(by_alias=True), }, profile={ DEFAULT_PROFILE: PlatformProfile( auth=DEFAULT_PROFILE, host="https://silverback.apeworx.io", - ).model_dump() + ).model_dump(by_alias=True) }, ) PROFILE_PATH.parent.mkdir(exist_ok=True)