]> gitweb.fluxo.info Git - puppet-mysql.git/commitdiff
Rollback from previous change at mysql user provider
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 8 Feb 2011 13:57:04 +0000 (11:57 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 8 Feb 2011 13:57:04 +0000 (11:57 -0200)
lib/puppet/provider/mysql_user/mysql.rb

index adc46c3b20e32ed9a7fd7c2f3298186f56cd069e..a19b35372014b86030915eba7ef9805ca089237d 100644 (file)
@@ -37,7 +37,7 @@ Puppet::Type.type(:mysql_user).provide(:mysql,
        def query
                result = {}
 
-               cmd = "#{command(:mysql)} -NBe 'select concat(user, \"@\", host), password from user where concat(user, \"@\", host) = \"%s\"'" % @resource[:name]
+               cmd = "#{command(:mysql)} mysql -NBe 'select concat(user, \"@\", host), password from user where concat(user, \"@\", host) = \"%s\"'" % @resource[:name]
                execpipe(cmd) do |process|
                        process.each do |line|
                                unless result.empty?