Issue #10915 has been updated by Adrien Thebo.
This just bit me with the puppetlabs-mysql module. Given this code
<pre>
if privs[0].downcase == 'all'
privs = all_privs
end
</pre>
and privs[0] is a symbol, the following error is produced
<pre>
err:
/Stage[main]//Node[foo]/Mysql::Db[bar]/Database_grant[baz@localhost/bar]/privileges:
change from to all failed: The mysql provider can not handle attribute
privileges at /etc/puppet/environments/mysql/sherwood/mysql/manifests/db.pp:63
</pre>
since Symbol doesn't define `#downcase`. Not a fun one to debug.
----------------------------------------
Bug #10915: The "provider can not handle attribute" error is misleading
https://projects.puppetlabs.com/issues/10915#change-67251
Author: Michael Bryant
Status: Accepted
Priority: Normal
Assignee:
Category: provider
Target version: 2.7.x
Affected Puppet version: 2.7.6
Keywords: AIX user provider puppet password
Branch:
<pre>
err: /Stage[main]/Root_user/User[root]/password: change from [old password hash
redacted] to [new password hash redacted]
failed: The aix provider can not handle attribute password at
/etc/puppet/modules/root_user/manifests/init.pp:35
</pre>
A cursory look at the source shows that the aix user provider has the feature
manages_passwords, but doesn't have the password attribute listed as being
managed
config:
user { "root":
ensure => "present",
uid => "0",
gid => "system",
comment => "Super-User",
home => "/",
shell => "/usr/bin/ksh",
password => 'REDACTED'
}
--
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.