Skip to content

Fix same-section environment variable reuse#1714

Open
ReinerBRO wants to merge 1 commit intoSupervisor:mainfrom
ReinerBRO:fix/1642-env-reuse
Open

Fix same-section environment variable reuse#1714
ReinerBRO wants to merge 1 commit intoSupervisor:mainfrom
ReinerBRO:fix/1642-env-reuse

Conversation

@ReinerBRO
Copy link
Copy Markdown

This fixes #1642 by expanding environment key/value pairs in order, so values defined earlier in the same environment= line are available to later entries and to subsequent %(ENV_*)s expansions in the same section.\n\nTests: PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 python -m pytest supervisor/tests/test_options.py supervisor/tests/test_datatypes.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Variables defined in environment= in [program:x] section cannot be reused in %(ENV_X)s expansions in the same section

1 participant