Issue #2347 has been reported by micah -.

----------------------------------------
Bug #2347: when absent parameter is set on file type, it fails if the user 
parameter is a non-existing user
http://projects.reductivelabs.com/issues/2347

Author: micah -
Status: Unreviewed
Priority: Normal
Assigned to: 
Category: 
Target version: 
Complexity: Unknown
Affected version: 0.24.8
Keywords: 



If you are trying to remove a file by specifying the absent parameter, and 
there is also a user parameter attached with a non-existing user, it fails... 
but only when the file exists. Observe:

<pre>
/tmp$ cat foo.pp 
file { '/tmp/ffo': ensure => absent, owner => nonexisting_user; }
/tmp$ puppet foo.pp
/tmp$ echo $?
0
/tmp$
</pre>

but, if the file *exists* then you get a failure:

<pre>
/tmp$ touch ffo
/tmp$ puppet foo.pp
err: //File[/tmp/ffo]: Failed to retrieve current state of resource: Could not 
find user nonexisting_user
</pre>

This makes it difficult to remove a user and a file all in one swoop, such as 
in the case when you want to remove any resource managed within any define that 
you set to absent.


-- 
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://reductivelabs.com/redmine/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