Issue #4696 has been updated by Charlie Sharpsteen.

Status changed from Accepted to Duplicate
Assignee set to Charlie Sharpsteen

Closing as a duplicate of #4938. This basically happens because we have 
overloaded the `ensure` parameter to contain the path to a symlink target if it 
does not contain a valid file type.

----------------------------------------
Bug #4696: Typo in 'ensure' field of file resource results in confusing error.
https://projects.puppetlabs.com/issues/4696#change-91251

* Author: Jordan Sissel
* Status: Duplicate
* Priority: Normal
* Assignee: Charlie Sharpsteen
* Category: error reporting
* Target version: 
* Affected Puppet 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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to