file_lines_absent
Ensure that a line is absent in a specific location.
⚙️ Compatible targets: Linux, Windows
Parameters
Name | Documentation |
---|---|
path | File name to edit (absolute path on the target node). This parameter is required. |
lines | Line(s) to remove in the file. This parameter is required. |
Outcome conditions
You need to replace ${path}
with its actual canonified value.
- ✅ Ok:
file_lines_absent_${path}_ok
- ☑️ Already compliant:
file_lines_absent_${path}_kept
- 🟨 Repaired:
file_lines_absent_${path}_repaired
- ☑️ Already compliant:
- ❌ Error:
file_lines_absent_${path}_error
Example
method: file_lines_absent
params:
lines: VALUE
path: VALUE
Documentation
Edit the file, and ensure it does not contain the defined line. Regular expression can be used for both the file name and the lines absent.