From 1e8e9f472c2321e0468b346653f1f3bc4403e318 Mon Sep 17 00:00:00 2001 From: mh Date: Mon, 20 May 2013 14:05:00 +0200 Subject: [PATCH] symbolize was removed in puppet 3 - See http://projects.puppetlabs.com/issues/16791 --- lib/puppet/provider/mysql_grant/mysql.rb | 2 +- lib/puppet/type/mysql_grant.rb | 2 +- 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 d93b951..765ffe0 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{|p| p[0].downcase.intern } end end end diff --git a/lib/puppet/type/mysql_grant.rb b/lib/puppet/type/mysql_grant.rb index c6311e5..e61f429 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.intern end def should_to_s(newvalue = @should)