Make sure stdout always lines up with what is expected out ansible

Also, strip superflous extra newlines at the end of job events, this
helps downloaded stdout line up.
This commit is contained in:
Matthew Jones
2017-02-03 15:36:35 -05:00
parent e6dcf1f61a
commit 0139bccde3
3 changed files with 3 additions and 3 deletions

View File

@@ -129,7 +129,7 @@ describe('parseStdoutService', () => {
end_line: 11,
stdout: "a\r\nb\r\nc..."
};
let expectedReturn = [[8, "a"],[9, "b"], [10,"c..."], [11, "[1;imLine capped.[0m"]];
let expectedReturn = [[8, "a"],[9, "b"], [10,"c..."], [11, ""]];
let returnedEvent = parseStdoutService.getLineArr(mockEvent);