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

Error 'You cannot specify more than one of content, source, target' using >=v3.0.7 #82

Closed
krzyzan opened this issue Sep 24, 2014 · 3 comments

Comments

@krzyzan
Copy link

krzyzan commented Sep 24, 2014

Using saz/sudo v3.0.7 following snippet:

sudo::conf { 'operations':
source => "puppet:///modules/${module_name}/sudo/operations",
}

causes puppet error:

Error: Failed to apply catalog: Validation of File[10_operations] failed: You cannot specify more than one of content, source, target at /etc/puppet/environments/yyy/modules/sudo/manifests/conf.pp:104

Apparently it is caused by merging PR #77.
After this PR if $content_real => undef then content => "undef\n" which is incorrect.

@saz saz closed this as completed in 99e94f2 Sep 24, 2014
@saz
Copy link
Owner

saz commented Sep 24, 2014

@krzyzan Can you give the current master a try, if the problem is solved for you?

saz added a commit that referenced this issue Sep 24, 2014
@krzyzan
Copy link
Author

krzyzan commented Sep 24, 2014

Your changes resolve the problem.
Tested undef, array and string cases.
Please release 3.0.9 shortly.

@saz
Copy link
Owner

saz commented Sep 24, 2014

It's already released.

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

No branches or pull requests

2 participants