swipely/docker-api — pull request #66 by tlunter (2013-12-07 14:33:41+00:00)
Title: Splits the lines, and uses the last one that is successfully built

@bfulton @nahiluhmot @adamjt @wader

Wader had a better implementation of our extract_id since it was only looking at the last line.

For me, extract ID is getting confused with \n at the beginning and \r at the end of the line and not matching. Since the lines are broken down now anyway, no reason to use the ^ or $.

This should find the last image successfully built in the body.