ini_manage.options_absent: files are rewritten with modified content, when returning no changes #33789
Labels
Bug
broken, incorrect, or confusing behavior
P4
Priority 4
Platform
Relates to OS, containers, platform-based utilities like FS, system based apps
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
stale
State-Module
Windows
Milestone
ini_manage.options_absent is rewriting the files it's checking and reporting no changes. I would have expected that checking the file would only read it (and I guess there is an argument for re-writing to a consistent format - maybe the ini states need a reformat flag?) but the rewrite results are giving inconsistent line endings on Windows. Here is a test case, where I've already applied the fix for #33590.
salt salt-test state.apply
On Linux, at least the rewrite is consistent:
...but on Windows the line endings have been mixed up:
Tested on 2016.3.0
The text was updated successfully, but these errors were encountered: