Sitelet https://web.archive.org/web/20220101002219/https://github.com/localstack/localstack/pull/5167
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

fix single-space env default in docker-compose #5167

Merged
merged 1 commit into from Dec 22, 2021

Conversation

@alexrashed
Copy link
Member

@alexrashed alexrashed commented Dec 22, 2021

The example docker-compose.yml in the root dir of this repo uses the env variable default syntax of Docker Compose.
However, a space is added before the closing bracket:

SERVICES=${SERVICES- }

This means that the default is not an empty string, but a string with a single white-space character.
This can cause issues in certain cases (os.environ.get("<var>") returns True for a single-whitespace string instead of False for an empty string).

This PR changes the default variables in the docker-compose.yml such that they are actually empty.

@alexrashed alexrashed temporarily deployed to localstack-ext-tests Dec 22, 2021 Inactive
@alexrashed alexrashed requested a review from thrau Dec 22, 2021
@github-actions
Copy link

@github-actions github-actions bot commented Dec 22, 2021

LocalStack integration with Pro

    3 files  ±0      3 suites  ±0   30m 43s ⏱️ + 2m 27s
718 tests ±0  699 ✔️ ±0  19 💤 ±0  0 ❌ ±0 
858 runs  ±0  822 ✔️ ±0  36 💤 ±0  0 ❌ ±0 

Results for commit e382f0b. ± Comparison against base commit 83ae195.

thrau
thrau approved these changes Dec 22, 2021
Copy link
Member

@thrau thrau left a comment

👍

@alexrashed alexrashed merged commit 57490c7 into master Dec 22, 2021
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants