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

Remove old check config file if check is installed with Agent 6/7 #47

Merged
merged 1 commit into from
Jan 13, 2020

Conversation

KSerrania
Copy link
Contributor

What does this PR do?

Remove conf.d/<check>.yaml if a check is enabled and Agent 6/7 is installed, preventing config file duplication.

Motivation

If the formula is run with <= 2.1 and then 3.0, then both conf.d/<check>.yaml and conf.d/<check>.d/conf.yaml are here, and the Agent picks up both config files, duplicating the checks.

@kbogtob
Copy link

kbogtob commented Jan 6, 2020

Why the CI is running as there's no .circleci configuration?

I suspect that you tried it manually so it LGTM but maybe I'll let @albertvaka re-review :).

@KSerrania
Copy link
Contributor Author

I activated circleci to test it for this PR: #46, but the activation is done for the whole repository, which means it runs even on branches where the .circleci config folder is not present 😅

@KSerrania KSerrania merged commit 5597db4 into master Jan 13, 2020
@KSerrania KSerrania deleted the kserrania/remove-old-check-files branch January 13, 2020 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants