Skip to content

Commit

Permalink
Moved metric user and password configuration to metrics plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Francia Csaba committed Feb 29, 2024
1 parent 722cc2a commit ee0f3ab
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions amarillo/services/secrets.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
from typing import Dict
from pydantic import Field
from pydantic import Field, ConfigDict
from pydantic_settings import BaseSettings
from typing import Optional
# Example: secrets = { "mfdz": "some secret" }
class Secrets(BaseSettings):
model_config = ConfigDict(extra='allow')
ride2go_token: str = Field(None, env = 'RIDE2GO_TOKEN')
# TODO: define these as required if metrics plugin is installed
metrics_user: Optional[str] = Field(None, env = 'METRICS_USER')
metrics_password: Optional[str] = Field(None, env = 'METRICS_PASSWORD')


# Read if file exists, otherwise no error (it's in .gitignore)
Expand Down

0 comments on commit ee0f3ab

Please sign in to comment.