Issue #17466 has been updated by James Sweeny.
Also, the relevant stack trace: <pre> Error: Could not run: undefined method `exists?' for nil:NilClass /root/src/puppet/lib/puppet/type/user.rb:74:in `retrieve' /root/src/puppet/lib/puppet/type/user.rb:366:in `retrieve' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:38:in `inject' /root/src/puppet/lib/puppet/type/user.rb:360:in `each' /root/src/puppet/lib/puppet/type/user.rb:360:in `inject' /root/src/puppet/lib/puppet/type/user.rb:360:in `retrieve' /root/src/puppet/lib/puppet/type.rb:693:in `retrieve_resource' /root/src/puppet/lib/puppet/type.rb:1775:in `to_resource' /root/src/puppet/lib/puppet/indirector/resource/ral.rb:10:in `find' /root/src/puppet/lib/puppet/indirector/indirection.rb:191:in `find' /root/src/puppet/lib/puppet/application/resource.rb:218:in `find_or_save_resources' /root/src/puppet/lib/puppet/application/resource.rb:142:in `main' /root/src/puppet/lib/puppet/application.rb:354:in `run_command' /root/src/puppet/lib/puppet/application.rb:346:in `run' /root/src/puppet/lib/puppet/application.rb:438:in `plugin_hook' /root/src/puppet/lib/puppet/application.rb:346:in `run' /root/src/puppet/lib/puppet/util.rb:500:in `exit_on_fail' /root/src/puppet/lib/puppet/application.rb:346:in `run' /root/src/puppet/lib/puppet/util/command_line.rb:87:in `execute' /root/src/puppet/bin/puppet:4 </pre> ---------------------------------------- Bug #17466: Bad error from user type when no provider is available https://projects.puppetlabs.com/issues/17466#change-75935 Author: James Sweeny Status: Unreviewed Priority: Normal Assignee: Category: Target version: Affected Puppet version: Keywords: Branch: The user type gives "undefined method `exists?' for nil:NilClass" when it can't find a suitable provider. This should be more clear about what the issue was. <pre>[root@util puppet]# mv /usr/sbin/usermod /usr/sbin/usermod.bak [root@util puppet]# puppet resource --debug user root Debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not exist Debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does not exist Debug: Failed to load library 'ldap' for feature 'ldap' Debug: Puppet::Type::User::ProviderLdap: feature ldap is missing Debug: Puppet::Type::User::ProviderPw: file pw does not exist Debug: Puppet::Type::User::ProviderUseradd: file usermod does not exist Debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not exist Debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does not exist Debug: Failed to load library 'ldap' for feature 'ldap' Debug: Puppet::Type::User::ProviderLdap: feature ldap is missing Debug: Puppet::Type::User::ProviderPw: file pw does not exist Debug: Puppet::Type::User::ProviderUseradd: file usermod does not exist Debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not exist Debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does not exist Debug: Failed to load library 'ldap' for feature 'ldap' Debug: Puppet::Type::User::ProviderLdap: feature ldap is missing Debug: Puppet::Type::User::ProviderPw: file pw does not exist Debug: Puppet::Type::User::ProviderUseradd: file usermod does not exist Debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not exist Debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does not exist Debug: Failed to load library 'ldap' for feature 'ldap' Debug: Puppet::Type::User::ProviderLdap: feature ldap is missing Debug: Puppet::Type::User::ProviderPw: file pw does not exist Debug: Puppet::Type::User::ProviderUseradd: file usermod does not exist Error: Could not run: undefined method `exists?' for nil:NilClass [root@util puppet]# </pre> -- 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.
