Issue #4696 has been updated by Paul Berry.

Target version changed from 2.6.2 to queued

Setting target version to “queued”, since we would prefer to limit 2.6.x 
releases to fixing bugs that were introduced in 2.6.
----------------------------------------
Bug #4696: Typo in 'ensure' field of file resource results in confusing error.
http://projects.puppetlabs.com/issues/4696

Author: Jordan Sissel
Status: Accepted
Priority: Normal
Assignee: 
Category: error reporting
Target version: queued
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.

Reply via email to