File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -101,16 +101,16 @@ def self.mysql_caller(text_of_sql, type)
101
101
if type . eql? 'system'
102
102
if File . file? ( "#{ Facter . value ( :root_home ) } /.mylogin.cnf" )
103
103
ENV [ 'MYSQL_TEST_LOGIN_FILE' ] = "#{ Facter . value ( :root_home ) } /.mylogin.cnf"
104
- mysql_raw ( [ system_database , '-e' , text_of_sql ] . flatten . compact )
104
+ mysql_raw ( [ system_database , '-e' , text_of_sql ] . flatten . compact ) . scrub
105
105
else
106
- mysql_raw ( [ defaults_file , system_database , '-e' , text_of_sql ] . flatten . compact )
106
+ mysql_raw ( [ defaults_file , system_database , '-e' , text_of_sql ] . flatten . compact ) . scrub
107
107
end
108
108
elsif type . eql? 'regular'
109
109
if File . file? ( "#{ Facter . value ( :root_home ) } /.mylogin.cnf" )
110
110
ENV [ 'MYSQL_TEST_LOGIN_FILE' ] = "#{ Facter . value ( :root_home ) } /.mylogin.cnf"
111
- mysql_raw ( [ '-NBe' , text_of_sql ] . flatten . compact )
111
+ mysql_raw ( [ '-NBe' , text_of_sql ] . flatten . compact ) . scrub
112
112
else
113
- mysql_raw ( [ defaults_file , '-NBe' , text_of_sql ] . flatten . compact )
113
+ mysql_raw ( [ defaults_file , '-NBe' , text_of_sql ] . flatten . compact ) . scrub
114
114
end
115
115
else
116
116
raise Puppet ::Error , _ ( "#mysql_caller: Unrecognised type '%{type}'" % { type : type } )
You can’t perform that action at this time.
0 commit comments