We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aee55d4 commit 8b522afCopy full SHA for 8b522af
lib/puppet/provider/mysql_user/mysql.rb
@@ -50,7 +50,7 @@ def create
50
51
# Use CREATE USER to be compatible with NO_AUTO_CREATE_USER sql_mode
52
# This is also required if you want to specify a authentication plugin
53
- if defined? plugin
+ if !plugin.nil?
54
mysql([defaults_file, '-e', "CREATE USER '#{merged_name}' IDENTIFIED WITH '#{plugin}'"].compact)
55
@property_hash[:ensure] = :present
56
@property_hash[:plugin] = plugin
0 commit comments