Skip to content

Commit e972272

Browse files
committed
Fix mysql_users failing for SLES
1 parent b380c2a commit e972272

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/puppet/provider/mysql_user/mysql.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
# Build a property_hash containing all the discovered information about MySQL
99
# users.
1010
def self.instances
11-
users = mysql_caller("SELECT CONCAT(User, '@',Host) AS User FROM mysql.user", 'regular').split("\n")
11+
users = mysql_caller("SELECT HOST, CONCAT(User, '@',Host) AS User FROM mysql.user where HOST IS NOT NULL AND HOST != ''", 'regular').split("\n")
12+
# users = users_full.reject { |user| user == 'PUBLIC@' }
1213
# To reduce the number of calls to MySQL we collect all the properties in
1314
# one big swoop.
1415
users.map do |name|

0 commit comments

Comments
 (0)