Skip to content

Commit ee58434

Browse files
author
David Swan
committed
(MODULES-6627) Remove unused --host flag from mysqlcaller
Removing this as it once added back into the code by accident.
1 parent 9075bc3 commit ee58434

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lib/puppet/provider/mysql.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ def self.mysql_caller(text_of_sql, type)
8989
if type.eql? 'system'
9090
if File.file?("#{Facter.value(:root_home)}/.mylogin.cnf")
9191
ENV['MYSQL_TEST_LOGIN_FILE'] = "#{Facter.value(:root_home)}/.mylogin.cnf"
92-
mysql_raw(['--host=', system_database, '-e', text_of_sql].flatten.compact)
92+
mysql_raw([system_database, '-e', text_of_sql].flatten.compact)
9393
else
94-
mysql_raw([defaults_file, '--host=', system_database, '-e', text_of_sql].flatten.compact)
94+
mysql_raw([defaults_file, system_database, '-e', text_of_sql].flatten.compact)
9595
end
9696
elsif type.eql? 'regular'
9797
if File.file?("#{Facter.value(:root_home)}/.mylogin.cnf")

0 commit comments

Comments
 (0)