Issue #6808 has been updated by Charlie Sharpsteen.

Category set to file
Status changed from Accepted to In Topic Branch Pending Review
Keywords changed from  customer to links customer
Branch set to https://github.com/puppetlabs/puppet/pull/1716

Pull request submitted to add a warning. Later this can be upgraded to an 
depreciation notice or error as necessary.

----------------------------------------
Bug #6808: Provide informative message when ensure => present, *and* managing 
content/source, and target is a symlink
https://projects.puppetlabs.com/issues/6808#change-93203

* Author: Nigel Kersten
* Status: In Topic Branch Pending Review
* Priority: Low
* Assignee: Charlie Sharpsteen
* Category: file
* Target version: 
* Affected Puppet version: 
* Keywords: links customer
* Branch: https://github.com/puppetlabs/puppet/pull/1716
----------------------------------------
<pre>
/tmp/foo -> /tmp/bar
</pre>

<pre>
file { "/tmp/foo":
  ensure  => present,
  content => "foo",
}
</pre>

When you run this, you get no indication that the content will not be written. 
This is because the existence of the symlink suffices for "ensure => present", 
and the content isn't evaluated.

This is almost certainly another indicator that we should be breaking the 
symlink type out into it's own type, separate from File, but in the meantime we 
should try to log *something* here if feasible.




-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to