Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
lint fixes
  • Loading branch information
SanjeevLakhwani committed Jan 30, 2025
1 parent 71c22b8 commit 241aa32
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions py_bentoctl/auth_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def create_realm_if_needed(token: str, login_theme: str = "keycloak") -> None:
updated_realm = True

if realm.get("internationalizationEnabled") is not True or set(realm.get("supportedLocales", [])) != {
"en", "fr"}:
"en", "fr"}:
realm["internationalizationEnabled"] = True
realm["supportedLocales"] = ["en", "fr"]
updated_realm = True
Expand All @@ -378,7 +378,8 @@ def create_realm_if_needed(token: str, login_theme: str = "keycloak") -> None:
)
if update_realm_res.ok:
cprint(
f" Updated realm {AUTH_REALM} with theme '{login_theme}' and internationalization settings.",
f" Updated realm {AUTH_REALM} with theme '{login_theme}' and internationalization"
f" settings.",
"green")
else:
err(f" Failed to update realm: {update_realm_res.status_code} {update_realm_res.json()}")
Expand Down

0 comments on commit 241aa32

Please sign in to comment.