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 hardcoded /etc/sensu #1071

Merged
merged 1 commit into from
Feb 13, 2019
Merged

Remove hardcoded /etc/sensu #1071

merged 1 commit into from
Feb 13, 2019

Conversation

treydock
Copy link
Collaborator

Pull Request Checklist

Description

Several places in code did not respect changes to sensu::etc_dir, this change removes hardcoded /etc/sensu and /etc/sensu/conf.d from several locations.

Related Issue

Replaces #1058

Motivation and Context

Support changing sensu::etc_dir and other resources doing the right thing.

How Has This Been Tested?

Existing unit tests verify these changes don't change behavior but don't actually verify that changes to sensu::etc_dir do what the changes intended, those will be added.

Remove hardcoded /etc/sensu and respect changes to sensu::etc_dir

Co-authored-by: Nemanja Delic <nemanjad@ccbill.com>
Co-authored-by: Trey Dockendorf <treydock@gmail.com>
@ghoneycutt
Copy link
Collaborator

@treydock are there other tests you are going to add or is this ready?

@treydock
Copy link
Collaborator Author

@ghoneycutt I'm content with existing tests because they verify that these changes didn't mess with default behavior. What we're not testing is what happens when sensu::etc_dir is changed, that behavior is now different as in the past some resources didn't respect sensu::etc_dir and now they do. I'll add tests since this is a bug fix that fixes previously broken behavior.

@ghoneycutt ghoneycutt added the bug label Feb 13, 2019
@ghoneycutt ghoneycutt merged commit ec86d54 into sensu:master Feb 13, 2019
@treydock treydock deleted the etc_dir branch February 13, 2019 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants