summaryrefslogtreecommitdiff
path: root/lib/puppet
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-02-08 11:57:04 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-02-08 11:57:04 -0200
commit14dbafc286141d62ed70d4e171f7a5aeac62482b (patch)
tree9402b862a5e7ae846b205aaca66c7a1dc9e3c870 /lib/puppet
parent2929379eb88fe6941f28033d84e545f3c3a95e53 (diff)
downloadpuppet-mysql-14dbafc286141d62ed70d4e171f7a5aeac62482b.tar.gz
puppet-mysql-14dbafc286141d62ed70d4e171f7a5aeac62482b.tar.bz2
Rollback from previous change at mysql user provider
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/provider/mysql_user/mysql.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/provider/mysql_user/mysql.rb b/lib/puppet/provider/mysql_user/mysql.rb
index adc46c3..a19b353 100644
--- a/lib/puppet/provider/mysql_user/mysql.rb
+++ b/lib/puppet/provider/mysql_user/mysql.rb
@@ -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?