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

fail is not a resource type, it's a function. #197

Merged
merged 3 commits into from
Jul 13, 2017

Conversation

sophomeric
Copy link
Contributor

No description provided.

@bastelfreak
Copy link
Member

Hi @sophomeric, thanks for the PR. Can you take a look at the failing spec tests?

@bastelfreak bastelfreak added bug Something isn't working needs-work not ready to merge just yet labels Jun 24, 2017
@sophomeric
Copy link
Contributor Author

I really don't see what the issue is. My change was simple and the syntax is correct.

Could it be related to this?

voxpupuli/puppet-lint-trailing_comma-check#4

@sophomeric
Copy link
Contributor Author

And there's the fact that the syntax is bad as it is now without my change and fails to compile the catalog if you reach that code block. This conditionals intention (as I infer, not being the original author) is to produce a more intuitive error message for the user than the one puppet itself would give when the catalog fails.

See:
voxpupuli/puppet-lint-trailing_comma-check#4

By adding parenthesis around the conditional in the if statement we can
get this to pass lint checks for now. Note that the puppet-lint bug is
still a bug, and should be fixed in the puppet-lint project.
@reidmv reidmv removed the needs-work not ready to merge just yet label Jul 11, 2017
@reidmv reidmv requested a review from bastelfreak July 13, 2017 16:41
@bastelfreak bastelfreak merged commit da06b26 into voxpupuli:master Jul 13, 2017
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.

3 participants