-
-
Notifications
You must be signed in to change notification settings - Fork 337
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: user data tracing flag #517
Conversation
Sounds reasonable to me. |
@ravenolf I think it would be good to mention this change in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ravenolf thx, looks good. Would suggest also tw swap the default value https://github.com/npalm/terraform-aws-gitlab-runner/blob/d3912b0666d2fb0eb97bd53c66702153543261d4/variables.tf#L616 to true, so the behavior remains the same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the change @npalm requested.
#604 fixes the TF Docs problem. Can be ignored. |
Description
This commit fixes the tracing flag for bash in the user data.
Currently if you set the enable_runner_user_data_trace_log flag to
false
expecting to disable the tracing in bash it will actually trace the user data script.The reason is that the flag will be translated to
user_data_trace_log == false
. Once the condition is evaluated in the script you getif [[ $(echo ${user_data_trace_log}) == false ]]
->false == false
which istrue
and ends up enablingset -x
.This small change should fix it.
Migrations required
NO
Verification
Tested by running the script locally and setting the value in the current version to
true
and saw the opposite result