salt
salt copied to clipboard
logrotate creates .bak files in /etc/logrotate.d which logrotate reads.
Platform: Ubuntu 14.04.3 LTS Salt Version: salt 2015.8.3 (Beryllium)
When editting a file in /etc/logrotate.d/ the logrotate module creates a .bak file. The logrotate program will read this extra file, which can be very confusing. The call to file.psed should be file.replace with backup=False for logrotate.d files
@jeffreyctang, thanks for reporting. This should be easy to fix.