Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkandersson committed Oct 1, 2024
1 parent bc75b74 commit 9eb8c1d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions paas_app_charmer/framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ def secret_key_id(cls, data: dict[str, str | int | bool | dict[str, str] | None]
ValueError: if the *-secret-key-id is invalid.
NotImplementedError: ill-formed subclasses.
"""
secret_key_field = "secret_key"
# Bandit thinks the following are secrets which they are not
secret_key_field = "secret_key" # nosec B105
if secret_key_field not in cls.model_fields:
secret_key_field = "app_secret_key"
secret_key_field = "app_secret_key" # nosec B105
secret_key_config_name = cls.model_fields[secret_key_field].alias
if not secret_key_config_name:
raise NotImplementedError("framework configuration secret_key field has no alias")
Expand Down

0 comments on commit 9eb8c1d

Please sign in to comment.