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

Raise warning if hiera check is called but disabled #165

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

bastelfreak
Copy link
Member

Previously we got the following output from the syntax rake task:

$ bundle exec rake syntax
---> syntax:manifests
---> syntax:templates
---> syntax:hiera:yaml

This is a bit misleading because the syntax:hiera:yaml task was indeed called, but it doesn't do anything because
PuppetSyntax.check_hiera_keys was false. With this commit the output changes:

$ bundle exec rake syntax---> syntax:manifests
---> syntax:templates
---> syntax:hiera:yaml
syntax:hiera:yaml was called, but PuppetSyntax.check_hiera_keys is false. hiera syntax won't be checked

Previously we got the following output from the `syntax` rake task:

```terminal
$ bundle exec rake syntax
---> syntax:manifests
---> syntax:templates
---> syntax:hiera:yaml
```

This is a bit misleading because the `syntax:hiera:yaml` task was indeed
called, but it doesn't do anything because
`PuppetSyntax.check_hiera_keys` was false. With this commit the output
changes:

```terminal
$ bundle exec rake syntax---> syntax:manifests
---> syntax:templates
---> syntax:hiera:yaml
syntax:hiera:yaml was called, but PuppetSyntax.check_hiera_keys is false. hiera syntax won't be checked
```
@bastelfreak bastelfreak merged commit a7b23aa into voxpupuli:master Mar 12, 2024
10 checks passed
@bastelfreak bastelfreak deleted the foo branch March 12, 2024 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants