'force' option in copy state deletes target file #25250
Labels
Bug
broken, incorrect, or confusing behavior
Confirmed
Salt engineer has confirmed bug/feature - often including a MCVE
fixed-pls-verify
fix is linked, bug author to confirm fix
Needs-Testcase
PR needs test cases written, or the issue is about a bug/feature that needs test cases
P3
Priority 3
Platform
Relates to OS, containers, platform-based utilities like FS, system based apps
severity-high
2nd top severity, seen by most users, causes major problems
State-Module
Milestone
This will behave as expected if the target does not exist or if it is identical to the source
If however the target exists but is different from the source, then this state simply deletes the target, though it claims not to overwrite it:
The text was updated successfully, but these errors were encountered: