Issue #2952 has been updated by Markus Roberts.

Status changed from Investigating to Accepted
Target version changed from Puppet - 0.25.2 to Puppet - 0.25.3

This should be pretty straight forward.  It appears to be failing to make the 
temporary file in which (I presume) to collect the contents from the source, 
and fails because the directory isn't there.  That much is unavoidable.  But 
what we could do is recognize this when it happens and clean up the error 
message.
----------------------------------------
Bug #2952: File resource with missing parent directory has misleading error 
message
http://projects.reductivelabs.com/issues/2952

Author: Alan Harder
Status: Accepted
Priority: Low
Assigned to: Markus Roberts
Category: file
Target version: 0.25.3
Affected version: 0.25.2rc1
Keywords: 
Branch: 


<pre>
file { '/bogusdir/test':
  source => {valid source}
}
</pre>

with something like this the error message I see with current 0.25.x branch 
from git looks like this:
@change from absent to file failed: Could not set file on ensure: No such file 
or directory - /bogusdir/test.puppettmp_8080@

In my case the parent dir is created by an exec resource, but I didn't have the 
dependencies right, and the "puppettmp" reference here threw me.



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