Issue #4696 has been reported by Jordan Sissel.
----------------------------------------
Bug #4696: Typo in 'ensure' field of file resource results in confusing error.
http://projects.puppetlabs.com/issues/4696
Author: Jordan Sissel
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Affected version:
Keywords:
Branch:
I had a typo in one of my manifests which was "ensure => files" (should have
been 'file'). This typo lead to a confusing error message
Here's a test case. Affects 2.6.1rc2 and possibly others.
<pre>
% cat test.pp
class foo {
file {
'/tmp/foo':
ensure => files,
source => "/tmp/bar";
}
}
include foo
% puppet test.pp
You cannot specify more than one of content, source, target at
/home/jls/test.pp:6
<pre>
I expected some note about invalid 'ensure' value of 'files' but instead was
told something else.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.