feat(shared): pass config data via init (#2042)
This commit is contained in:
parent
2bde574487
commit
1147853c63
8 changed files with 65 additions and 44 deletions
|
@ -29,7 +29,7 @@ class Config(BaseConfig):
|
|||
rabbitmq: RabbitMQConfig
|
||||
analyzer: AnalyzerConfig
|
||||
|
||||
config = Config(filepath="/etc/libretime/config.yml")
|
||||
config = Config("/etc/libretime/config.yml")
|
||||
```
|
||||
|
||||
> Don't instantiate a sub model if it has a required field, otherwise the `Config` class import will raise a `ValidationError`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue