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

Always prefer codedir for hieradata #6

Merged
merged 3 commits into from
Nov 10, 2020
Merged

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Nov 10, 2020

This dynamically detects the codedir on the host via the settings which should always work. The other method uses hardcoded values and can go out of sync. This is a more reliable method.

Copy link
Member

@dhollinger dhollinger left a comment

Choose a reason for hiding this comment

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

Tests are failing for some reason

These tests are identical and there is no actual type check in the code
so there's no benefit to testing this.
This dynamically detects the codedir on the host via the settings which
should always work. The other method uses hardcoded values and can go
out of sync. This is a more reliable method.
@ekohl
Copy link
Member Author

ekohl commented Nov 10, 2020

I also cleaned up the tests a bit so it's a bit larger. Should be in separate commits for easier review.

@dhollinger dhollinger self-requested a review November 10, 2020 18:10
@ekohl ekohl merged commit 1d8ce13 into voxpupuli:master Nov 10, 2020
@ekohl ekohl deleted the codedir branch November 10, 2020 18:28
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.

2 participants