file_line_present_in_ini_section
Ensure that a line is present in a section in a specific location. The objective of this method is to handle INI-style files.
⚙️ Compatible targets: Linux
Parameters
Name | Documentation |
---|---|
path | File name to edit (absolute path on the target node). This parameter is required. |
section | Name of the INI-style section under which lines should be added (not including the [] brackets). This parameter is required. |
line | Line to ensure is present inside the section. This parameter is required. |
Outcome conditions
You need to replace ${path}
with its actual canonified value.
- ✅ Ok:
file_line_present_in_ini_section_${path}_ok
- ☑️ Already compliant:
file_line_present_in_ini_section_${path}_kept
- 🟨 Repaired:
file_line_present_in_ini_section_${path}_repaired
- ☑️ Already compliant:
- ❌ Error:
file_line_present_in_ini_section_${path}_error
Example
method: file_line_present_in_ini_section
params:
path: VALUE
section: VALUE
line: VALUE