Skip to content

Commit 8cb6587

Browse files
committed
mysql_user provider fixes
1 parent dab4d1c commit 8cb6587

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/puppet/provider/mysql_user/mysql.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def create
6969
end
7070
@property_hash[:ensure] = :present
7171
@property_hash[:plugin] = plugin
72-
elsif newer_than('mysql' => '5.7.6', 'percona' => '5.7.6')
72+
elsif newer_than('mysql' => '5.7.6', 'percona' => '5.7.6')
7373
self.class.mysql_caller("CREATE USER '#{merged_name}' IDENTIFIED WITH 'mysql_native_password' AS '#{password_hash}'", 'system')
7474
@property_hash[:ensure] = :present
7575
@property_hash[:password_hash] = password_hash
@@ -79,7 +79,7 @@ def create
7979
@property_hash[:password_hash] = password_hash
8080
end
8181
# rubocop:disable Metrics/LineLength
82-
if newer_than('mysql' => '5.7.6', 'percona' => '5.7.6')
82+
if newer_than('mysql' => '5.7.6', 'percona' => '5.7.6')
8383
self.class.mysql_caller("ALTER USER IF EXISTS '#{merged_name}' WITH MAX_USER_CONNECTIONS #{max_user_connections} MAX_CONNECTIONS_PER_HOUR #{max_connections_per_hour} MAX_QUERIES_PER_HOUR #{max_queries_per_hour} MAX_UPDATES_PER_HOUR #{max_updates_per_hour}", 'system')
8484
else
8585
self.class.mysql_caller("GRANT USAGE ON *.* TO '#{merged_name}' WITH MAX_USER_CONNECTIONS #{max_user_connections} MAX_CONNECTIONS_PER_HOUR #{max_connections_per_hour} MAX_QUERIES_PER_HOUR #{max_queries_per_hour} MAX_UPDATES_PER_HOUR #{max_updates_per_hour}", 'system')

0 commit comments

Comments
 (0)