From 1e8e9f472c2321e0468b346653f1f3bc4403e318 Mon Sep 17 00:00:00 2001 From: mh Date: Mon, 20 May 2013 14:05:00 +0200 Subject: symbolize was removed in puppet 3 - See http://projects.puppetlabs.com/issues/16791 --- lib/puppet/type/mysql_grant.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/puppet/type') 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) -- cgit v1.2.3 From 6be4faa81f4db5b918a2c59a50de00da564b2e3c Mon Sep 17 00:00:00 2001 From: mh Date: Sat, 10 Jan 2015 02:04:55 +0100 Subject: =?UTF-8?q?There=20is=20no=20need=20to=20call=20=E2=80=9Csuper?= =?UTF-8?q?=E2=80=9D=20here.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch avoid the following error: Validate method failed for class sleep: implicit argument passing of super from method defined by define_method() is not supported. Specify all arguments explicitly. See https://git.openstack.org/cgit/stackforge/puppet-vswitch/commit/?id=25afbfe58867fb39266a8862cfd6a3f8f38a9564 --- lib/puppet/type/mysql_user.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/puppet/type') diff --git a/lib/puppet/type/mysql_user.rb b/lib/puppet/type/mysql_user.rb index 0b7e9af..7d41890 100644 --- a/lib/puppet/type/mysql_user.rb +++ b/lib/puppet/type/mysql_user.rb @@ -12,8 +12,6 @@ Puppet::Type.newtype(:mysql_user) do if value.split('@').first.size > 16 raise ArgumentError, "MySQL usernames are limited to a maximum of 16 characters" - else - super end end end -- cgit v1.2.3