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

Enable consul script checks for raw_exec driver #1159

Merged
merged 5 commits into from
May 9, 2016

Conversation

capone212
Copy link
Contributor

Hi, I use nomad on windows platform. raw_exec is the only available driver there and it is fine to me. This request enables consul script checks that does not work currently with raw_exec

@@ -586,6 +586,20 @@ func (e *UniversalExecutor) createCheck(check *structs.ServiceCheck, checkID str
}, nil

}

if check.Type == structs.ServiceCheckScript && e.ctx.Driver == "raw_exec" {
Copy link
Contributor

@diptanu diptanu May 9, 2016

Choose a reason for hiding this comment

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

Ah, this was an overlook. Can you just merge this if statement with the previous branch of code that checks for the exec driver please?

if check.Type == structs.ServiceCheckScript && (e.ctx.Driver == "raw_exec" || e.ctx.Driver == "exec" || e.ctx.Driver == "java")

Copy link
Contributor Author

@capone212 capone212 May 9, 2016

Choose a reason for hiding this comment

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

Ready! Sorry for to many commits. Did not notice additional "java" condition at first.

@diptanu diptanu merged commit 902550c into hashicorp:master May 9, 2016
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants