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

Fix validate_cmd file resource parameter #263

Merged
merged 1 commit into from
Feb 12, 2015

Conversation

cmurphy
Copy link
Contributor

@cmurphy cmurphy commented Feb 12, 2015

The validate_cmd parameter is only valid on newer versions of puppet.
This module is supporting all 3.x versions of puppet. This commit only
applies the validate_cmd parameter to the file resource if it is
defined and adds documentation noting that it will not work on older
versons of puppet.

The validate_cmd parameter is only valid on newer versions of puppet.
This module is supporting all 3.x versions of puppet. This commit only
applies the validate_cmd parameter to the file resource if it is
defined and adds documentation noting that it will not work on older
versons of puppet.
@domcleal
Copy link

👍 fixes the issue for me.

jonnytdevops added a commit that referenced this pull request Feb 12, 2015
Fix validate_cmd file resource parameter
@jonnytdevops jonnytdevops merged commit 164a9a0 into puppetlabs:master Feb 12, 2015
File[$name] {
validate_cmd => $validate_cmd,
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

unless i'm entirely mistaken: given that validate_cmd's default is undef, we shouldn't really need the if here.

Choose a reason for hiding this comment

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

If the validate_cmd parameter is unconditionally added to the file {} resource above then pre-3.5 versions will throw an error, irrespective of whether it's undef or set.

Copy link
Contributor

Choose a reason for hiding this comment

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

ack. i did see the patch by @petems a bit too late before commenting here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants