Comment 1 for bug 1442239

Revision history for this message
Andy McCrae (andrew-mccrae) wrote :

Can you show us your ssh file before that ran?
I don't see how the original would break anything (also it'd really break testing hard if this was crashing ssh).

The lineinfile module replaces whole lines (and also only replaces 1 line, the last occurrence) - but it would replace a full line, so it shouldn't append anything to a line.

The regex before is doing a search so it'd replace the last occurrence of a line with "MaxSessions" in it with a line that is "MaxSessions 500". (Same for MaxStartups) - replacing the whole line, and includes os.linesep.

We need to determine that this isn't a larger bug related to the lineinfile module itself or some other issue.