Actions
Bug #5148
closedUse of bundle "file_ensure_line_present_in_ini_section.cf" to add lines into a section which does not exist will only add the section, not the lines
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:
Description
The use of file_ensure_line_present_in_ini_section.cf will only works if the section already exist and is not at the end of the file.
For example, to add a line in the section [my_section2]:
It will not work with a file containing:
[my_section1]
or
[my_section1] [my_section2]
It will work with a file containing:
[my_section1] [my_section2]
or
[my_section1] [my_section2] #A comment
Actions