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 Mar 22, 2024
1 parent 6c164aa commit ce7539b
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 ce7539b

Please sign in to comment.