[BUG] state file.patch pretend to apply malformed patch #59805
Labels
Bug
broken, incorrect, or confusing behavior
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone
Description
If patch file provided for
file.patch
state is malformed then state returnsPatch was already applied
but patch is not applied.Setup
/srv/salt/example.sls:
/srv/salt/example.patch:
/tmp/example
Steps to Reproduce the behavior
yum install -y patch
salt-call --local state.sls example -l debug
Expected behavior
It would be nice to return error when patch is malformed and can not be applied:
Versions Report
salt --versions-report
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: