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

Avoid failure on schedule metaparameter warning #122

Merged

Conversation

ffapitalle
Copy link

Syntax checking was failing (exit code 1) when puppet raises a the following warning

schedule is a metaparam; this value will inherit to all contained resources in the

Applied the same approach as tag.

@ghoneycutt
Copy link
Member

LGTM! Could you please rebase and squash your commits.

@ffapitalle ffapitalle force-pushed the avoid_failure_schedule_warning branch from 7396506 to 874106b Compare May 26, 2020 18:13
@ffapitalle
Copy link
Author

LGTM! Could you please rebase and squash your commits.

Great ! Done !

Copy link
Member

@ghoneycutt ghoneycutt left a comment

Choose a reason for hiding this comment

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

Realized tests are missing. Since this code is basically copying the tag functionality, you can copy those tests.

You will need a manifest in https://github.com/voxpupuli/puppet-syntax/tree/master/spec/fixtures/test_module/manifests

And copy these lines and change to match up with your new manifest.

https://github.com/voxpupuli/puppet-syntax/blob/master/spec/puppet-syntax/manifests_spec.rb#L19-L25

@ffapitalle
Copy link
Author

Test is already here.

@ghoneycutt
Copy link
Member

Doh! Yes it is.. merging now :)

@ghoneycutt ghoneycutt merged commit 7c51e3b into voxpupuli:master May 26, 2020
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