From a0057c65e20918916a5aa3bf791913f83d341503 Mon Sep 17 00:00:00 2001 From: BlurryFlurry Date: Thu, 19 Nov 2015 13:08:24 +0530 Subject: [PATCH] Fixed the error by removing escape character. http://i.imgur.com/qaFUlGv.png?1 ' in file /tmp/vagrant-puppet/modules-76bee6c9d10deeda599d20f2249d671a/mysql/manifests/queryfile.pp at line 45 ' in file /tmp/vagrant-puppet/modules-76bee6c9d10deeda599d20f2249d671a/mysql/manifests/queryfile.pp at line 46 ' in file /tmp/vagrant-puppet/modules-76bee6c9d10deeda599d20f2249d671a/mysql/manifests/queryfile.pp at line 47 https://github.com/example42/puppet-mysql/blob/master/manifests/queryfile.pp#L44-L46 --- manifests/queryfile.pp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/manifests/queryfile.pp b/manifests/queryfile.pp index 01c585c..a34f57b 100644 --- a/manifests/queryfile.pp +++ b/manifests/queryfile.pp @@ -41,10 +41,7 @@ } exec { "mysqlqueryfile-${name}": - command => "mysql ${arg_mysql_defaults_file} \ - ${arg_mysql_user} ${arg_mysql_password} ${arg_mysql_host} \ - ${mysql_db} < ${mysql_file} && \ - touch ${mysql_query_filepath}/mysqlqueryfile-${name}.run", + command => "mysql ${arg_mysql_defaults_file} ${arg_mysql_user} ${arg_mysql_password} ${arg_mysql_host} ${mysql_db} < ${mysql_file} && touch ${mysql_query_filepath}/mysqlqueryfile-${name}.run", path => [ '/usr/bin' , '/usr/sbin' , '/bin' , '/sbin' ], creates => "${mysql_query_filepath}/mysqlqueryfile-${name}.run", unless => "ls ${mysql_query_filepath}/mysqlqueryfile-${name}.run",