Skip to content

Commit ca33678

Browse files
authored
Merge pull request #1174 from david22swan/MODULES-6627
(MODULES-6627) Remove unused --host flags from mysqlcaller
2 parents 9075bc3 + ee58434 commit ca33678

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)