Browse files

Fix bug when querying for all database users

This commit fixes an issue in self.instances of
database_user where none of the users were actually
being detected.

There was a accidental '\' in front of the '.' which 
means that it will only consider users that have
one or more '.' in front of the '@'.

This commit removes the '\' so that all users are
returned that have one or more characters in from
of an '@'.
  • Loading branch information...
Dan Bode
Dan Bode committed Mar 15, 2012
1 parent 82d0ae5 commit 015490c787111d7682bd70604c276578d3e3399e
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/puppet/provider/database_user/mysql.rb
@@ -9,7 +9,7 @@
def self.instances
users = mysql("mysql", '-BNe' "select concat(User, '@',Host) as User from mysql.user").split("\n")
-{ |user| user =~ /\.+@/ }.collect do |name|
+{ |user| user =~ /.+@/ }.collect do |name|
new(:name => name)

0 comments on commit 015490c

Please sign in to comment.