Skip to content
Snippets Groups Projects
Commit e4c9ab4b authored by Rodrigo Cortes Mejia's avatar Rodrigo Cortes Mejia
Browse files

docs(faqs): worker note in datastore entry

parent 120700ca
No related branches found
No related tags found
1 merge request!340Resolve "faq entry to set datastore configuration in resconfig"
Pipeline #415751 passed
......@@ -34,9 +34,11 @@ Then run `texts` again. Then use the [variable update](scl.md#dealing-with-failu
```python
from virtmat.middleware.resconfig import get_resconfig_loc, get_default_resconfig
cfg = get_default_resconfig()
wcfg = cfg.workers[0]
wcfg = cfg.workers[0] # SEE NOTE
wcfg.envvars.update({'DATASTORE_CONFIG': '/alternative/path_to/my_project/datastore_config.yaml'})
wcfg.default_envvars.append('DATASTORE_CONFIG')
cfg.default_worker = wcfg
cfg.to_file(get_resconfig_loc())
```
**NOTE:** In this example `worker[0]` is assumed as the relevant worker for the datastore configuration. If available, other workers can be selected by using the corresponding index, eg `worker[n]`.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment