diff --git a/templates/redis.conf.epp b/templates/redis.conf.epp index 3f8a9954..79771dcb 100644 --- a/templates/redis.conf.epp +++ b/templates/redis.conf.epp @@ -1030,9 +1030,9 @@ aof-rewrite-incremental-fsync <%= bool2str($aof_rewrite_incremental_fsync, 'yes' # the file will be fsync-ed every 32 MB of data generated. This is useful # in order to commit the file to the disk more incrementally and avoid # big latency spikes. -<% unless $rdb_save_incremental_fsync == undef -%> -rdb_save_incremental_fsync: <%= bool2str($rdb_save_incremental_fsync, 'yes', 'no') %> -<% end -%> +<% unless $rdb_save_incremental_fsync == undef { -%> +rdb_save_incremental_fsync <%= bool2str($rdb_save_incremental_fsync, 'yes', 'no') %> +<% } -%> # Redis Cluster Settings <% if $cluster_enabled { -%>