We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 865b274 commit aee55d4Copy full SHA for aee55d4
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 !plugin.empty?
+ if defined? plugin
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