[BUG] file.comment complains if not found #58269
Labels
Bug
broken, incorrect, or confusing behavior
Confirmed
Salt engineer has confirmed bug/feature - often including a MCVE
Core
relates to code central or existential to Salt
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
State-Module
Milestone
Description
The file.comment service complains, with an error, if the regex is not found. This does not match similar behavior in, for instance, file.replace, which does not complain if it is not found.
Steps to Reproduce the behavior
Create file.comment with an expression which does not match.
Expected behavior
Silently ignore that nothing matches
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)The text was updated successfully, but these errors were encountered: