Actions
Bug #4949
closedEnsure that a line is present in a ini section will not work if the section does not exist or is at the end of file but will return a success
Pull Request:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Priority:
0
Name check:
Fix check:
Regression:
Description
bundle file_ensure_line_present_in_ini_section() will return success if the section is not present in the file or if the section (and the line) is the last of the file.
The behavior will be that the section is added at the end of the file, but not the line.
A workaround is to use the generic method to add the same section two times, one after the other.
Actions