Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment variable parsing support for Config files #108

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

deathbyknowledge
Copy link

Description of the change

These changes add support for usage of environment variables in Yaml config files(currently only enabled in the Config module).
PyYaml supports node tagging, so this uses a custom constructor that replaces nodes tagged with !ENV with an environment variable with the same name.

This step will explicitly error if a variable is not set.

Example:

foo: !ENV MY_VAR

The value for foo would be set to the value of the MY_VAR variable.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Related issues

N/A

Describe multi-tenancy segmentation

N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant