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

Prefer id over name consul check filename #100

Merged
merged 2 commits into from
Dec 16, 2014
Merged

Prefer id over name consul check filename #100

merged 2 commits into from
Dec 16, 2014

Conversation

tgwizard
Copy link
Contributor

Fixes #99. I chose to do it with a fallback, the same was as for service definitions, as id isn't required, and name is used as id in consul if id isn't specified.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 03c1cb7 on tgwizard:use-id-in-consul-check-filename into 72b9230 on johnbellone:master.

@reset
Copy link
Contributor

reset commented Dec 12, 2014

@tgwizard This would be a breaking change for anyone upgrading the version of the Consul cookbook they're using. We need to have a migration step here that checks if the name identified file is present while the id one is not and deletes the name identified one.

@tgwizard
Copy link
Contributor Author

@reset yes this is unnecessarily a breaking change. I'll add that step, to remove the check-#{name}.json file if a) there is an id attribute specified and b) the check-#{name}.json file exists.

That also have an id and that now will be registered with id in the
path. Also add specs for this and for other check_def logic.
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 4ae75d2 on tgwizard:use-id-in-consul-check-filename into 72b9230 on johnbellone:master.

@tgwizard
Copy link
Contributor Author

@reset @johnbellone what do you think?

@reset
Copy link
Contributor

reset commented Dec 16, 2014

@tgwizard looks good to me, thank you for following up with a migration!

reset added a commit that referenced this pull request Dec 16, 2014
Prefer id over name consul check filename
@reset reset merged commit 8d34e11 into sous-chefs:master Dec 16, 2014
@tgwizard tgwizard deleted the use-id-in-consul-check-filename branch January 13, 2015 17:05
@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
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.

Should check_def create the file using the id property instead of name?
3 participants