Issue #6664 has been reported by micah -.

----------------------------------------
Bug #6664: Type reference: file resource force documentation missing 
information about directories
https://projects.puppetlabs.com/issues/6664

Author: micah -
Status: Unreviewed
Priority: Normal
Assignee: 
Category: documentation
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


The type reference file resource section force parameter says this:

<pre>
FORCE
Force the file operation. Currently only used when replacing directories with 
links. Valid values are true, false.
</pre>

However, this isn't totally true. This is also necessary when you are removing 
a directory, regardless if there is anything in the directory. For example, 
consider the following:

<pre>
$ mkdir /tmp/foo
$ cat > /tmp/file_force.pp
file { "/tmp/foo": ensure => absent }
EOF
$ puppet --verbose /tmp/file_force.pp
notice: /Stage[main]//File[/tmp/blah]: Not removing directory; use 'force' to 
override
</pre>

I would suggest modifying the documentation to also indicate this use case.



-- 
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