summaryrefslogtreecommitdiff
path: root/lib/puppet
diff options
context:
space:
mode:
authordb <drebs@riseup.net>2015-05-15 23:59:21 -0300
committerdb <drebs@riseup.net>2015-05-15 23:59:21 -0300
commit0da4ca9c3e817bc56ed12bd56b9e6ea267b67ddc (patch)
tree323912e108f31d84956f8663236ab852c3ee896a /lib/puppet
parent3988bac7628a20a070a853319af7597faddb7408 (diff)
downloadpuppet-mysql-0da4ca9c3e817bc56ed12bd56b9e6ea267b67ddc.tar.gz
puppet-mysql-0da4ca9c3e817bc56ed12bd56b9e6ea267b67ddc.tar.bz2
[bug] fix symbolization of privileges when granting
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/provider/mysql_grant/mysql.rb2
-rw-r--r--lib/puppet/type/mysql_grant.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/provider/mysql_grant/mysql.rb b/lib/puppet/provider/mysql_grant/mysql.rb
index e62d4da..f666788 100644
--- a/lib/puppet/provider/mysql_grant/mysql.rb
+++ b/lib/puppet/provider/mysql_grant/mysql.rb
@@ -177,7 +177,7 @@ Puppet::Type.type(:mysql_grant).provide(:mysql) do
# transpose the lines, so we have key/value pairs
privs = privs[0].zip(privs[1])
privs = privs.select do |p| (/_priv$/) and p[1] == 'Y' end
- privs.collect do |p| symbolize(p[0].downcase) end
+ privs.collect do |p| p[0].downcase.to_sym end
end
end
end
diff --git a/lib/puppet/type/mysql_grant.rb b/lib/puppet/type/mysql_grant.rb
index c6311e5..c0daf67 100644
--- a/lib/puppet/type/mysql_grant.rb
+++ b/lib/puppet/type/mysql_grant.rb
@@ -43,7 +43,7 @@ Puppet::Type.newtype(:mysql_grant) do
newproperty(:privileges, :array_matching => :all) do
desc "The privileges the user should have. The possible values are implementation dependent."
munge do |v|
- symbolize(v)
+ v.to_sym
end
def should_to_s(newvalue = @should)