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 b380c2a commit e972272Copy full SHA for e972272
lib/puppet/provider/mysql_user/mysql.rb
@@ -8,7 +8,8 @@
8
# Build a property_hash containing all the discovered information about MySQL
9
# users.
10
def self.instances
11
- users = mysql_caller("SELECT CONCAT(User, '@',Host) AS User FROM mysql.user", 'regular').split("\n")
+ 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@' }
13
# To reduce the number of calls to MySQL we collect all the properties in
14
# one big swoop.
15
users.map do |name|
0 commit comments