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 bug in CLI Output if user has overridden CHE_HOST #3749

Merged
merged 2 commits into from
Jan 16, 2017

Conversation

TylerJewell
Copy link

What does this PR do?

Fixes issue uncovere by @garagatyi where the CLI output in two locations shows the wrong CHE_HOST value if the user has overridden CHE_HOST in the che.env file.

This implements a printout mechanism that uses Docker to print out the value and passes in che.env as an input into that.

@TylerJewell TylerJewell added kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system. labels Jan 16, 2017
@TylerJewell TylerJewell self-assigned this Jan 16, 2017
info "${CHE_PRODUCT_NAME}_HOST = ${CHE_HOST}"
local CHE_HOST_LOCAL=${CHE_HOST}
if is_initialized; then
CHE_HOST_LOCAL=$(docker_run --env-file="${REFERENCE_CONTAINER_ENVIRONMENT_FILE}" \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe create function that retrieves variable by name? It is possible that other variables in different places will be also needed at some point

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that is a good idea. Let me think about how to do such a thing.

Copy link
Contributor

@riuvshin riuvshin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sweeet!

@TylerJewell TylerJewell merged commit 5b76f1a into master Jan 16, 2017
@TylerJewell TylerJewell deleted the cli-host-output branch January 16, 2017 17:28
@codenvy-ci
Copy link

@slemeur slemeur added this to the 5.1.0 milestone Jan 17, 2017
@JamesDrummond JamesDrummond mentioned this pull request Jan 31, 2017
9 tasks
JPinkney pushed a commit to JPinkney/che that referenced this pull request Aug 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants