mirror of
https://github.com/moghtech/komodo.git
synced 2026-05-08 13:19:53 -05:00
Environment variables in Stacks are saved without quotes #100
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @FibreTTP on GitHub (Oct 22, 2024).
At some point in the last two weeks, stack environment variable parsing behaviour has changed to ignore quotes (single and double), leading the Docker daemon to attempt to interpolate strings with
$dollar signs in them as variables.Komodo was previously (seemingly) following the Docker Env_file format for single-quoted values, but now it is not. Escaping the
'apostrophe with a\backslash saves both of those characters as expected, and thus is not a workaround.This behaviour applies to the
.envfile saved, where even though the correct format is used in the web interface:it ends up being saved as:
(no quotes)
This makes the Docker daemon attempt to interpolate the string with the variable
$s2n84, which does not exist, and ends up without those characters in the final value:time="2024-10-22T07:31:06Z" level=warning msg="The \"s2n84\" variable is not set. Defaulting to a blank string."@mbecker20 commented on GitHub (Oct 22, 2024):
Thanks for letting me know, I get the problem here. I'll release a patch ensuring it will retain users choice of wrapping value in single or double quotes.
@mbecker20 commented on GitHub (Oct 22, 2024):
Hi, should be fixed in this commit
bb898c12aaand released as version 1.16.2: https://github.com/mbecker20/komodo/releases/tag/v1.16.2Can you confirm the fix?
@FibreTTP commented on GitHub (Oct 23, 2024):
Works, thanks!