Issue #6727 has been updated by Devon Peters.

Category set to API
Status changed from Investigating to Closed

This behavior is expected.
----------------------------------------
Bug #6727: "Could not find user" When Managing a File - But the New User Exists
https://projects.puppetlabs.com/issues/6727

Author: Jeremy Jack
Status: Closed
Priority: Normal
Assignee: Ben Hughes
Category: API
Target version: 
Affected Puppet version: 0.25.5
Keywords: 
Branch: 


A basic user and file creation like this

    $user_name = 'puppet_test'
    $group_name = 'puppet_test'

    @group { $group_name: }
    @user { $user_name: }

    realize Group[$group_name]
    realize User[$user_name]

    file { '/tmp/nothing':
        owner => $user_name,
        group => $group_name,
        #    ensure => file,
        require => User[$user_name],
    }

     
Results in the following error: err: //File[/tmp/nothing]: Failed to retrieve 
current state of resource: Could not find user puppet_test

Uncommenting the ensure line will cause it to work. Is this an error in my 
logic, the underlying logic of puppet, or just a display bug?



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