Issue #18127 has been reported by Igor Galić.

----------------------------------------
Bug #18127: puppet resource user root: Error: Could not run: undefined method 
`exists?' for nil:NilClass
https://projects.puppetlabs.com/issues/18127

Author: Igor Galić
Status: Unreviewed
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 3.0.1
Keywords: 
Branch: 


Following [the resources 
documentation](http://docs.puppetlabs.com/learning/ral.html) I execute the 
following command as normal user and get:
<pre>
igalic@tynix ~ % puppet resource user root
Error: Could not run: undefined method `exists?' for nil:NilClass
1 igalic@tynix ~ % puppet resource user igalic
Error: Could not run: undefined method `exists?' for nil:NilClass
1 igalic@tynix ~ % 
</pre>

When executing the same commands as root, I get the expected results:
<pre>
tynix ~ # puppet resource user root
user { 'root':
  ensure  => 'present',
  comment => 'root',
  gid     => '0',
  groups  => ['root', 'bin', 'daemon', 'sys', 'adm', 'disk', 'wheel'],
  home    => '/root',
  shell   => '/bin/bash',
  uid     => '0',
}
tynix ~ # puppet resource user igalic
user { 'igalic':
  ensure  => 'present',
  comment => 'Igor Galić',
  gid     => '501',
  groups  => ['wheel', 'jupiter', 'rvm'],
  home    => '/home/igalic',
  shell   => '/bin/zsh',
  uid     => '500',
}
tynix ~ # 
</pre>

Environment: @ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]@


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