File tree 2 files changed +8
-4
lines changed 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -75,12 +75,16 @@ class { 'mysql::server': }
75
75
context 'with file_per_database and excludedatabases' do
76
76
let ( :params ) do
77
77
{
78
- 'file_per_database' => true ,
79
- 'excludedatabases' => [ 'information_schema' ] ,
78
+ 'file_per_database' => true ,
79
+ 'excludedatabases' => [ 'information_schema' ] ,
80
80
} . merge ( default_params )
81
81
end
82
82
83
- it { is_expected . to contain_file ( 'mysqlbackup.sh' ) . with_content ( %r{grep -v.*information_schema} ) }
83
+ it {
84
+ is_expected . to contain_file ( 'mysqlbackup.sh' ) . with_content (
85
+ %r{grep -v.*information_schema} ,
86
+ )
87
+ }
84
88
end
85
89
end
86
90
end
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ cleanup
81
81
<% end -%>
82
82
<% if @backupdatabases . empty? -%>
83
83
<% if @file_per_database -%>
84
- mysql --defaults-extra-file=$TMPFILE -s -r -N -e 'SHOW DATABASES' <% if ! @excludedatabases . empty? %> | grep -v '^\(<% @excludedatabases . join ( '|' ) %> )$' <% end %> | while read dbname
84
+ mysql --defaults-extra-file=$TMPFILE -s -r -N -e 'SHOW DATABASES' <% if ! @excludedatabases . empty? %> | grep -v '^\(<% @excludedatabases . join ( '|' ) %> \ )$' <% end %> | while read dbname
85
85
do
86
86
<%= @backupmethod -%> --defaults-extra-file=$TMPFILE --opt --flush-logs --single-transaction \
87
87
${ADDITIONAL_OPTIONS} \
You can’t perform that action at this time.
0 commit comments